File tree 1 file changed +3
-3
lines changed
sql/core/src/main/scala/org/apache/spark/sql/execution/adaptive
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -402,9 +402,9 @@ case class AdaptiveSparkPlanExec(
402
402
stagesToReplace.clear()
403
403
}
404
404
}
405
- // Now that some stages have finished, we can try creating new stages.
406
- result = createQueryStages(fun, currentPhysicalPlan, false )
407
405
}
406
+ // Now that some stages have finished, we can try creating new stages.
407
+ result = createQueryStages(fun, currentPhysicalPlan, false )
408
408
}
409
409
}
410
410
_isFinalPlan = true
@@ -417,7 +417,7 @@ case class AdaptiveSparkPlanExec(
417
417
// Subqueries that don't belong to any query stage of the main query will execute after the
418
418
// last UI update in `getFinalPhysicalPlan`, so we need to update UI here again to make sure
419
419
// the newly generated nodes of those subqueries are updated.
420
- if (shouldUpdatePlan && currentPhysicalPlan.exists(_.subqueries.nonEmpty) ) {
420
+ if (shouldUpdatePlan) {
421
421
getExecutionId.foreach(onUpdatePlan(_, Seq .empty))
422
422
}
423
423
logOnLevel(log " Final plan: \n ${MDC (QUERY_PLAN , currentPhysicalPlan)}" )
You can’t perform that action at this time.
0 commit comments