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

    https://github.com/apache/spark/pull/2095#discussion_r16633897
  
    --- Diff: python/pyspark/rdd.py ---
    @@ -1782,6 +1798,71 @@ def _defaultReducePartitions(self):
         # keys in the pairs.  This could be an expensive operation, since those
         # hashes aren't retained.
     
    +    def _is_pickled(self):
    +        """ Return this RDD is serialized by Pickle or not. """
    +        der = self._jrdd_deserializer
    +        if isinstance(der, PickleSerializer):
    +            return True
    +        if isinstance(der, BatchedSerializer) and 
isinstance(der.serializer, PickleSerializer):
    +            return True
    +        return False
    +
    +    def _to_jrdd(self):
    --- End diff --
    
    There's a small possibility that this name could be confusing, since 
`self._jrdd` returns a Java RDD of Python objects, whereas `self.to_jrdd()` 
returns a JavaRDD of Java objects.  I would maybe rename this to something like 
`to_java_object_rdd`.


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