amaliujia commented on code in PR #43010:
URL: https://github.com/apache/spark/pull/43010#discussion_r1333800854


##########
python/pyspark/sql/connect/plan.py:
##########
@@ -1192,6 +1192,7 @@ def plan(self, session: "SparkConnectClient") -> 
proto.Relation:
         assert self._child is not None
 
         plan = proto.Relation()
+        plan.common.plan_id = self._child._plan_id

Review Comment:
   I was following examples like
   ```
   class CachedRelation(LogicalPlan):
       def __init__(self, plan: proto.Relation) -> None:
           super(CachedRelation, self).__init__(None)
           self._plan = plan
           # Update the plan ID based on the incremented counter.
           self._plan.common.plan_id = self._plan_id
   ```
   So I assumed I need to manually set the plan_id somehow. 
    



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