gengliangwang commented on a change in pull request #29137:
URL: https://github.com/apache/spark/pull/29137#discussion_r465503960
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/adaptive/AdaptiveSparkPlanExec.scala
##########
@@ -279,34 +280,69 @@ case class AdaptiveSparkPlanExec(
prefix: String = "",
addSuffix: Boolean = false,
maxFields: Int,
- printNodeId: Boolean): Unit = {
- super.generateTreeString(depth,
+ printNodeId: Boolean,
+ indent: Int = 0): Unit = {
+ super.generateTreeString(
+ depth,
lastChildren,
append,
verbose,
prefix,
addSuffix,
maxFields,
+ printNodeId,
+ indent)
+ generateTreeStringWithHeader(
+ if (isFinalPlan) "Final Plan" else "Current Plan",
Review comment:
> Why it's Current Plan not Final Plan in EXPLAIN FORMATTED
@cloud-fan I think it is from here.
@allisonwang-db Could you update the PR description to explain the
difference?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]