Github user davies commented on a diff in the pull request:

    https://github.com/apache/spark/pull/1276#discussion_r17011357
  
    --- Diff: python/pyspark/rdd.py ---
    @@ -181,7 +181,7 @@ def id(self):
             """
             A unique ID for this RDD (within its SparkContext).
             """
    -        return self._id
    +        return self._jrdd.id()
    --- End diff --
    
    self._jrdd.id() will need an RPC in py4j, so it's better to cache it as 
`_id`.
    
    For PipelineRDD() and SchemaRDD(), we can override id() to fetch the id 
from _jrdd (also cache it).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to