Skip to content

Commit 5bfb8e5

Browse files
committed
fix
1 parent 2f1669e commit 5bfb8e5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sql/core/src/main/scala/org/apache/spark/sql/execution/adaptive/AdaptiveSparkPlanExec.scala

+3-3
Original file line numberDiff line numberDiff line change
@@ -402,9 +402,9 @@ case class AdaptiveSparkPlanExec(
402402
stagesToReplace.clear()
403403
}
404404
}
405-
// Now that some stages have finished, we can try creating new stages.
406-
result = createQueryStages(fun, currentPhysicalPlan, false)
407405
}
406+
// Now that some stages have finished, we can try creating new stages.
407+
result = createQueryStages(fun, currentPhysicalPlan, false)
408408
}
409409
}
410410
_isFinalPlan = true
@@ -417,7 +417,7 @@ case class AdaptiveSparkPlanExec(
417417
// Subqueries that don't belong to any query stage of the main query will execute after the
418418
// last UI update in `getFinalPhysicalPlan`, so we need to update UI here again to make sure
419419
// the newly generated nodes of those subqueries are updated.
420-
if (shouldUpdatePlan && currentPhysicalPlan.exists(_.subqueries.nonEmpty)) {
420+
if (shouldUpdatePlan) {
421421
getExecutionId.foreach(onUpdatePlan(_, Seq.empty))
422422
}
423423
logOnLevel(log"Final plan:\n${MDC(QUERY_PLAN, currentPhysicalPlan)}")

0 commit comments

Comments
 (0)