liuzqt commented on code in PR #49715:
URL: https://github.com/apache/spark/pull/49715#discussion_r1945875993
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/adaptive/AdaptiveSparkPlanExec.scala:
##########
@@ -215,6 +215,14 @@ case class AdaptiveSparkPlanExec(
@volatile private var currentPhysicalPlan = initialPlan
+ // Use inputPlan logicalLink here in case some top level physical nodes may
be removed
+ // during `initialPlan`
+ @transient @volatile private var currentLogicalPlan: LogicalPlan = {
+ inputPlan.logicalLink.get
+ }
+
+ val stagesToReplace = mutable.ArrayBuffer.empty[QueryStageExec]
Review Comment:
You're right... I reverted it
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]