Skip to content

Conversation

@531651225
Copy link

@531651225 531651225 commented Dec 18, 2022

Why are the changes needed?

refer to #3999

How was this patch tested?

  • Add some test cases that check the changes thoroughly including negative and positive cases if possible

  • Add screenshots for manual tests if appropriate

  • Run test locally before make a pull request

  • config Apache Phoenix jdbc engine in kyuubi-defaults.conf

图片

- use beeline connected

图片

- query phoenix in kyuubi

图片

@codecov-commenter
Copy link

codecov-commenter commented Dec 18, 2022

Codecov Report

Merging #4000 (df18b4b) into master (c577dc7) will decrease coverage by 0.00%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master    #4000      +/-   ##
============================================
- Coverage     52.11%   52.10%   -0.01%     
  Complexity       13       13              
============================================
  Files           541      541              
  Lines         29468    29485      +17     
  Branches       3938     3939       +1     
============================================
+ Hits          15357    15363       +6     
- Misses        12709    12710       +1     
- Partials       1402     1412      +10     
Impacted Files Coverage Δ
...rg/apache/kyuubi/ctl/cmd/log/LogBatchCommand.scala 60.00% <0.00%> (-7.70%) ⬇️
.../engine/spark/session/SparkSQLSessionManager.scala 78.48% <0.00%> (-1.27%) ⬇️
...apache/kyuubi/service/TBinaryFrontendService.scala 48.38% <0.00%> (-1.08%) ⬇️
...n/scala/org/apache/kyuubi/engine/ProcBuilder.scala 80.74% <0.00%> (-0.63%) ⬇️
...he/kyuubi/ha/client/etcd/EtcdDiscoveryClient.scala 68.50% <0.00%> (-0.56%) ⬇️
...apache/kyuubi/session/KyuubiBatchSessionImpl.scala 86.66% <0.00%> (+0.08%) ⬆️
.../org/apache/kyuubi/session/KyuubiSessionImpl.scala 78.98% <0.00%> (+0.15%) ⬆️
...rg/apache/kyuubi/events/KyuubiOperationEvent.scala 96.96% <0.00%> (+0.19%) ⬆️
...g/apache/kyuubi/operation/BatchJobSubmission.scala 75.75% <0.00%> (+0.28%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@531651225 531651225 requested a review from yaooqinn December 20, 2022 01:35
@pan3793
Copy link
Member

pan3793 commented Dec 22, 2022

Could you add integration tests for Phoenix?

@531651225
Copy link
Author

Could you add integration tests for Phoenix?

thanks your advice,i added it in new commit

@531651225 531651225 requested review from pan3793 and removed request for yaooqinn January 5, 2023 01:57
override def createStatement(connection: Connection, fetchSize: Int): Statement = {
val statement =
connection.createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY)
statement.setFetchSize(Integer.MIN_VALUE)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why ignore fetchSize and set it to Integer.MIN_VALUE?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why ignore fetchSize and set it to Integer.MIN_VALUE?

fix it

}

override def getTableTypesOperation(session: Session): Operation = {
throw KyuubiSQLException.featureNotSupported()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this can be implemented since line 62 returns Set("s", "u")

Copy link
Author

@531651225 531651225 Jan 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this can be implemented since line 62 returns Set("s", "u")

thanks your advice, Whether it can be improved in the future, and how to implement it has not been decided

pom.xml Outdated
<ldapsdk.version>6.0.5</ldapsdk.version>
<log4j.version>2.19.0</log4j.version>
<mysql.jdbc.version>8.0.27</mysql.jdbc.version>
<phoenix.version>6.0.0</phoenix.version>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please sort alphabetically

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please sort alphabetically

have fix it

Copy link
Member

@pan3793 pan3793 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM on my side, cc @zhaomin1423

@zhaomin1423
Copy link
Member

LGTM. maybe we need improve configs later, now can't use multiple jdbc source meanwhile.

@531651225
Copy link
Author

LGTM. maybe we need improve configs later, now can't use multiple jdbc source meanwhile.

There are many requirements for interactive query of multiple data sources. I hope that when the leaders have plans, I have the opportunity to participate

@pan3793 pan3793 added this to the v1.7.0 milestone Jan 5, 2023
@pan3793 pan3793 closed this in 32b06c6 Jan 5, 2023
@pan3793
Copy link
Member

pan3793 commented Jan 5, 2023

Thanks, merged to master

pan3793 pushed a commit that referenced this pull request Oct 24, 2023
### _Why are the changes needed?_

As #4000 adds the Apache Phoenix support for the JDBC engine without upgrading the configuration's description.

This PR aims to update the outdated configuration description to reflect the capabilities of the Kyuubi JDBC engine.

### _How was this patch tested?_
- [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible

- [ ] Add screenshots for manual tests if appropriate

- [ ] [Run test](https://kyuubi.readthedocs.io/en/master/contributing/code/testing.html#running-tests) locally before make a pull request

### _Was this patch authored or co-authored using generative AI tooling?_

No.

Closes #5294 from ymZhao1001/doc0915.

Closes #5294

8d61c36 [yangming] update jdbc doc
d082b4d [yangming] run dev/reformat and dev/gen/gen_all_config_docs.sh
5b814d8 [zhaoyangming] add jdbc Phoenix dialect

Lead-authored-by: yangming <[email protected]>
Co-authored-by: zhaoyangming <[email protected]>
Signed-off-by: Cheng Pan <[email protected]>
pan3793 pushed a commit that referenced this pull request Oct 24, 2023
### _Why are the changes needed?_

As #4000 adds the Apache Phoenix support for the JDBC engine without upgrading the configuration's description.

This PR aims to update the outdated configuration description to reflect the capabilities of the Kyuubi JDBC engine.

### _How was this patch tested?_
- [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible

- [ ] Add screenshots for manual tests if appropriate

- [ ] [Run test](https://kyuubi.readthedocs.io/en/master/contributing/code/testing.html#running-tests) locally before make a pull request

### _Was this patch authored or co-authored using generative AI tooling?_

No.

Closes #5294 from ymZhao1001/doc0915.

Closes #5294

8d61c36 [yangming] update jdbc doc
d082b4d [yangming] run dev/reformat and dev/gen/gen_all_config_docs.sh
5b814d8 [zhaoyangming] add jdbc Phoenix dialect

Lead-authored-by: yangming <[email protected]>
Co-authored-by: zhaoyangming <[email protected]>
Signed-off-by: Cheng Pan <[email protected]>
(cherry picked from commit 289549f)
Signed-off-by: Cheng Pan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants