liuzqt commented on code in PR #46965:
URL: https://github.com/apache/spark/pull/46965#discussion_r1638759220


##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/QueryPlan.scala:
##########
@@ -675,9 +679,11 @@ abstract class QueryPlan[PlanType <: QueryPlan[PlanType]]
 }
 
 object QueryPlan extends PredicateHelper {
-  val OP_ID_TAG = TreeNodeTag[Int]("operatorId")
   val CODEGEN_ID_TAG = new TreeNodeTag[Int]("wholeStageCodegenId")
 
+  val localIdMap: ThreadLocal[java.util.Map[QueryPlan[_], Int]] = 
ThreadLocal.withInitial(() =>

Review Comment:
   the scope is `ExplainUtils.processPlan`, but I defined it here because 
`QueryPlan` also need this, and don't have access to `execution` package from 
`catalyst`.  Added comments to clarify.



-- 
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]

Reply via email to