[KYUUBI #4325] Support replace preparedStatement for Trino-jdbc#4417
[KYUUBI #4325] Support replace preparedStatement for Trino-jdbc#4417yehere wants to merge 11 commits intoapache:masterfrom
Conversation
|
@ulysses-you Is there a reusable trino g4 file for me to resolve parameters,like EXECUTE statement1 USING INTEGER '1','abc' ? |
|
@yehere you can add in |
|
please remove test/debug code when it's ready to review, thank you |
kyuubi-server/src/main/antlr4/org/apache/kyuubi/sql/KyuubiTrinoFeBaseParser.g4
Outdated
Show resolved
Hide resolved
...ts/kyuubi-trino-it/src/test/scala/org/apache/kyuubi/it/trino/server/TrinoFrontendSuite.scala
Show resolved
Hide resolved
kyuubi-common/src/test/scala/org/apache/kyuubi/operation/JDBCTestHelper.scala
Show resolved
Hide resolved
kyuubi-server/src/main/scala/org/apache/kyuubi/sql/plan/trino/TrinoFeOperations.scala
Outdated
Show resolved
Hide resolved
kyuubi-server/src/main/scala/org/apache/kyuubi/server/trino/api/TrinoContext.scala
Show resolved
Hide resolved
kyuubi-server/src/main/scala/org/apache/kyuubi/server/trino/api/TrinoContext.scala
Show resolved
Hide resolved
Codecov Report
@@ Coverage Diff @@
## master #4417 +/- ##
============================================
+ Coverage 53.59% 57.62% +4.03%
Complexity 13 13
============================================
Files 579 579
Lines 31802 31888 +86
Branches 4253 4262 +9
============================================
+ Hits 17045 18377 +1332
+ Misses 13172 11754 -1418
- Partials 1585 1757 +172
... and 35 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
...rk-sql-engine/src/main/scala/org/apache/kyuubi/engine/spark/operation/ExecuteStatement.scala
Outdated
Show resolved
Hide resolved
kyuubi-server/src/main/scala/org/apache/kyuubi/server/trino/api/Query.scala
Outdated
Show resolved
Hide resolved
| case GetPrepareSql(statementId, _) => | ||
| val query = Query( | ||
| statementId, | ||
| statement.split(s"$statementId FROM")(1), |
There was a problem hiding this comment.
should it be statement of GetPrepareSql ?
There was a problem hiding this comment.
I mean we can use prepare.sql, which is parsed by antlr
There was a problem hiding this comment.
This parse module I want my colleague to improve based on my code. He is responsible for trino
|
also cc @iodone if you have time to help review |
kyuubi-server/src/main/scala/org/apache/kyuubi/server/trino/api/Query.scala
Outdated
Show resolved
Hide resolved
|
thank you @yehere for the updating. There are still some comments not addressed. |
7614b11 to
1302cef
Compare
| arrow-format/11.0.0//arrow-format-11.0.0.jar | ||
| arrow-memory-core/11.0.0//arrow-memory-core-11.0.0.jar | ||
| arrow-memory-netty/11.0.0//arrow-memory-netty-11.0.0.jar | ||
| arrow-vector/11.0.0//arrow-vector-11.0.0.jar |
There was a problem hiding this comment.
do we lose arrow dependency list before ? @pan3793
There was a problem hiding this comment.
we don't need to do arrow codec in server before, and since new deps is added, please update the LICENSE and NOTICE
kyuubi-server/src/main/scala/org/apache/kyuubi/sql/plan/trino/TrinoFeOperations.scala
Show resolved
Hide resolved
7020e2b to
e5ff618
Compare
…,Support DEALLOCATE PREPARE
…,Add test case for DEALLOCATE PREPARE
…,Code optimization
…,Code optimization
…,update the dependency file, run './build/dependency.sh --replace'
ulysses-you
left a comment
There was a problem hiding this comment.
thanks, merging to master
Why are the changes needed?
close #4325
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