[KYUUBI #3435] Command should not execute when plan only mode is set to PHYSICAL or EXECUTION#3439
[KYUUBI #3435] Command should not execute when plan only mode is set to PHYSICAL or EXECUTION#3439lsm1 wants to merge 5 commits intoapache:masterfrom
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.
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