apache / apache/kyuubi

[Bug] KyuubiStatement.execute always return true

Open
#2,654 7 comments 0 reactions 0 assignees View on GitHub
kind:bug priority:major
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 bug

KyuubiStatement.execute always return true even it's running a CREATE TABLE command in Spark SQL engine which doesn't return any results

`true if the first result is a ResultSet object; false if it is an update count or there are no results`
`boolean execute(String sql) throws SQLException;`

### Affects Version(s)

1.6-SNAPSHOT

### Kyuubi Server Log Output

_No response_

### Kyuubi Engine Log Output

_No response_

### Kyuubi Server Configurations

_No response_

### Kyuubi Engine Configurations

_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 KyuubiStatement.execute entry point and trace how CREATE TABLE commands from the Spark SQL engine determine their result. Confirm the JDBC contract for statements with no ResultSet, then add or update coverage so execute returns false for that case.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala, spark, sql
Domain
api, databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.