-
Notifications
You must be signed in to change notification settings - Fork 982
[KYUUBI #5507][FLINK] Support Initialize SQL in Flink Engine #5518
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
link3280
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for the PR. The code generally looks good, but the tests could be improved a bit. Please take a look at my comments.
...ine/src/test/scala/org/apache/kyuubi/engine/flink/operation/FlinkEngineInitializeSuite.scala
Outdated
Show resolved
Hide resolved
...ine/src/test/scala/org/apache/kyuubi/engine/flink/operation/FlinkEngineInitializeSuite.scala
Outdated
Show resolved
Hide resolved
f55e4fa to
ee53a94
Compare
...link-sql-engine/src/main/scala/org/apache/kyuubi/engine/flink/session/FlinkSessionImpl.scala
Outdated
Show resolved
Hide resolved
ee53a94 to
20ce217
Compare
Codecov Report
@@ Coverage Diff @@
## master #5518 +/- ##
============================================
- Coverage 61.67% 61.44% -0.24%
Complexity 23 23
============================================
Files 603 603
Lines 35670 35669 -1
Branches 4869 4869
============================================
- Hits 21999 21916 -83
- Misses 11291 11376 +85
+ Partials 2380 2377 -3 see 23 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
522a60f to
b37d62d
Compare
...ine/src/test/scala/org/apache/kyuubi/engine/flink/operation/FlinkEngineInitializeSuite.scala
Outdated
Show resolved
Hide resolved
...s/kyuubi-flink-sql-engine/src/main/scala/org/apache/kyuubi/engine/flink/FlinkSQLEngine.scala
Outdated
Show resolved
Hide resolved
| } | ||
| } | ||
| withKyuubiConf.foreach { case (k, v) => | ||
| System.setProperty(k, v) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's the background of this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not relevant. It's probably a cleanup of unused codes.
pan3793
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall LGTM, just left a few comments
…uubi/engine/flink/FlinkSQLEngine.scala Co-authored-by: Cheng Pan <pan3793@gmail.com>
...ine/src/test/scala/org/apache/kyuubi/engine/flink/operation/FlinkEngineInitializeSuite.scala
Outdated
Show resolved
Hide resolved
…uubi/engine/flink/operation/FlinkEngineInitializeSuite.scala
|
Thanks, merged to master |
### _Why are the changes needed?_ We shoud support initialize SQL to init session context the in Flink SQL (e.g. setting up catalogs). ### _How was this patch tested?_ - [x] 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 apache#5518 from hadoopkandy/KYUUBI-5507. Closes apache#5507 b1720ec [Cheng Pan] Update externals/kyuubi-flink-sql-engine/src/test/scala/org/apache/kyuubi/engine/flink/operation/FlinkEngineInitializeSuite.scala 0782738 [Paul Lin] [KYUUBI-5507] Improve codestyle 13035f3 [Paul Lin] Update externals/kyuubi-flink-sql-engine/src/main/scala/org/apache/kyuubi/engine/flink/FlinkSQLEngine.scala 2ce8031 [Paul Lin] [KYUUBI-5507] Improve tests a29ac38 [Paul Lin] [KYUUBI-5507] Run engine initial SQL at Engine start b864af5 [wangkang] Merge branch 'apache:master' into KYUUBI-5507 b37d62d [kandy01.wang] [KYUUBI apache#5507] [FLINK] Support Initialize SQL in Flink Engine Lead-authored-by: Kang Wang <kandy01.wang@vipshop.com> Co-authored-by: Paul Lin <paullin3280@gmail.com> Co-authored-by: kandy01.wang <kandy01.wang@vipshop.com> Co-authored-by: Cheng Pan <pan3793@gmail.com> Co-authored-by: wangkang <525262800@qq.com> Signed-off-by: Cheng Pan <chengpan@apache.org>
|
I was asked frequently these days how to initialize the catalog in the Flink engine. @link3280, if you don't mind, I propose to backport this patch to 1.8.1 so that we can deliver it soon. |
|
@pan3793 Sure. I'll create a backport PR in days. |
### _Why are the changes needed?_ We shoud support initialize SQL to init session context the in Flink SQL (e.g. setting up catalogs). ### _How was this patch tested?_ - [x] 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 #5518 from hadoopkandy/KYUUBI-5507. Closes #5507 b1720ec [Cheng Pan] Update externals/kyuubi-flink-sql-engine/src/test/scala/org/apache/kyuubi/engine/flink/operation/FlinkEngineInitializeSuite.scala 0782738 [Paul Lin] [KYUUBI-5507] Improve codestyle 13035f3 [Paul Lin] Update externals/kyuubi-flink-sql-engine/src/main/scala/org/apache/kyuubi/engine/flink/FlinkSQLEngine.scala 2ce8031 [Paul Lin] [KYUUBI-5507] Improve tests a29ac38 [Paul Lin] [KYUUBI-5507] Run engine initial SQL at Engine start b864af5 [wangkang] Merge branch 'apache:master' into KYUUBI-5507 b37d62d [kandy01.wang] [KYUUBI #5507] [FLINK] Support Initialize SQL in Flink Engine Lead-authored-by: Kang Wang <kandy01.wang@vipshop.com> Co-authored-by: Paul Lin <paullin3280@gmail.com> Co-authored-by: kandy01.wang <kandy01.wang@vipshop.com> Co-authored-by: Cheng Pan <pan3793@gmail.com> Co-authored-by: wangkang <525262800@qq.com> Signed-off-by: Cheng Pan <chengpan@apache.org>
Why are the changes needed?
We shoud support initialize SQL to init session context the in Flink SQL (e.g. setting up catalogs).
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
Was this patch authored or co-authored using generative AI tooling?
No.