ulysses-you commented on a change in pull request #34316:
URL: https://github.com/apache/spark/pull/34316#discussion_r731730996



##########
File path: 
sql/core/src/main/scala/org/apache/spark/sql/execution/adaptive/AdaptiveSparkPlanExec.scala
##########
@@ -322,6 +325,7 @@ case class AdaptiveSparkPlanExec(
         Some((planChangeLogger, "AQE Post Stage Creation")))
       isFinalPlan = true
       executionId.foreach(onUpdatePlan(_, Seq(currentPhysicalPlan)))
+      cancelRunningStages()

Review comment:
       yes, the `currentPhysicalPlan` converted to `LocalTableScanExec` during 
re-optimize and the `LocalTableScanExec` is a leaf node, then the flag of 
`allChildStagesMaterialized` is awlays true.




-- 
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]

Reply via email to