apache / apache/kyuubi

[FEATURE] Support !scala command to execute scala code in kyuubi beeline

Open
#1,724 1 comment 1 reaction 0 assignees View on GitHub
kind:feature
Dominant language
Scala
Stars
2.4k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

### Code of Conduct

- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)

### Search before asking

- [X] I have searched in the [issues](https://github.com/apache/incubator-kyuubi/issues?q=is%3Aissue) and found no similar issues.

### Describe the feature

scala is also widely used in data development, so it is nice to have scala code support in kyuubi beeline.

For example,
```
!scala
spark.sql("SELECT * from test_keyspace.test_table")
```
It will output the table schema.

### Motivation

_No response_

### Describe the solution

_No response_

### Additional context

_No response_

### Are you willing to submit PR?

- [ ] Yes I am willing to submit a PR!

Contributor guide

Open the contributing guide

Research direction

Start at the Kyuubi beeline command-handling entry point and trace how commands are executed. Determine how the !scala input should run the shown spark.sql example and expose its output. Done means beeline accepts !scala followed by Scala code and produces the expected table schema.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala, spark
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.