peter-toth commented on code in PR #56275:
URL: https://github.com/apache/spark/pull/56275#discussion_r3364599743
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/adaptive/AdaptiveSparkPlanExec.scala:
##########
@@ -85,6 +86,13 @@ case class AdaptiveSparkPlanExec(
@transient private val optimizer = new AQEOptimizer(conf,
context.session.sessionState.adaptiveRulesHolder.runtimeOptimizerRules)
+ // The tracker to record physical preparation rules into. Only the outer
(non-subquery)
+ // `AdaptiveSparkPlanExec` records into the shared `context.qe.tracker`;
sub-AQE replanning
+ // happens on `SubqueryExec.executionContext` and writing to the outer
tracker from there
+ // would break `QueryPlanningTracker`'s thread-local single-threaded
contract.
+ @transient private val mainQueryTracker: Option[QueryPlanningTracker] =
Review Comment:
Good idea, especially the 4th.
--
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]