Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
liuzqt committed Jan 31, 2025
1 parent 2f1669e commit 5bfb8e5
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -402,9 +402,9 @@ case class AdaptiveSparkPlanExec(
stagesToReplace.clear()
}
}
// Now that some stages have finished, we can try creating new stages.
result = createQueryStages(fun, currentPhysicalPlan, false)
}
// Now that some stages have finished, we can try creating new stages.
result = createQueryStages(fun, currentPhysicalPlan, false)
}
}
_isFinalPlan = true
Expand All @@ -417,7 +417,7 @@ case class AdaptiveSparkPlanExec(
// Subqueries that don't belong to any query stage of the main query will execute after the
// last UI update in `getFinalPhysicalPlan`, so we need to update UI here again to make sure
// the newly generated nodes of those subqueries are updated.
if (shouldUpdatePlan && currentPhysicalPlan.exists(_.subqueries.nonEmpty)) {
if (shouldUpdatePlan) {
getExecutionId.foreach(onUpdatePlan(_, Seq.empty))
}
logOnLevel(log"Final plan:\n${MDC(QUERY_PLAN, currentPhysicalPlan)}")
Expand Down

0 comments on commit 5bfb8e5

Please sign in to comment.