You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2021/10/19 10:41:30 UTC

[GitHub] [spark] ulysses-you commented on a change in pull request #34316: [SPARK-37043][SQL] Cancel all running job after AQE plan finished

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: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org