-
Notifications
You must be signed in to change notification settings - Fork 980
[KYUUBI #3435] Command should not execute when plan only mode is set to PHYSICAL or EXECUTION #3439
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
...k-sql-engine/src/main/scala/org/apache/kyuubi/engine/spark/operation/PlanOnlyStatement.scala
Outdated
Show resolved
Hide resolved
|
This change doesn't seem to be compatible with Spark 3.1, can you make it compatible? |
Codecov Report
@@ Coverage Diff @@
## master #3439 +/- ##
=========================================
Coverage 51.92% 51.92%
Complexity 13 13
=========================================
Files 508 522 +14
Lines 29029 29049 +20
Branches 3985 3887 -98
=========================================
+ Hits 15072 15084 +12
- Misses 12532 12590 +58
+ Partials 1425 1375 -50
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
| val physical = spark.sessionState.planner.plan(ReturnAnswer(optimized)).next() | ||
| iter = new IterableFetchIterator(Seq(Row(physical.toJSON))) | ||
| case ExecutionMode => | ||
| warn("Plan like Command will real execute") |
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.
ExplainCommand return string, when use json style ,the plan cannot be wrapped as ExplainCommand.Add warning for this case
|
shall we remove this two? they are dangerous and not very useful |
|
SPARK-35378 add |
|
ok |
|
this introduces unstable private class from spark, not a good solution to me |
6c49c3b to
9aabe04
Compare
Why are the changes needed?
close #3435
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