maryannxue commented on a change in pull request #29137:
URL: https://github.com/apache/spark/pull/29137#discussion_r457482512
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/adaptive/AdaptiveSparkPlanExec.scala
##########
@@ -288,25 +291,59 @@ case class AdaptiveSparkPlanExec(
addSuffix,
maxFields,
printNodeId)
- currentPhysicalPlan.generateTreeString(
+ plans.zipWithIndex.foreach { case ((name, plan), i) =>
Review comment:
What @allisonwang-db tries to do here is to print this "CurrentPlan" and
"InitialPlan" as a "header" of each plan.
My question was: are we OK with this output style? Alternatively we could
also do:
```
AdaptiveSparkPlanExec
:- CurrentPlan: (top node of current plan starts here)
+- InitialPlan: (top node of initial plan starts here)
```
----------------------------------------------------------------
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]