Github user mattf commented on the pull request:
https://github.com/apache/spark/pull/2478#issuecomment-56805152
> RDD._jrdd is very heavy for PipelinedRDD, but getNumPartitions() could be
optimized for PipelinedRDD to avoid the creation of _jrdd (could be
rdd.prev.getNumPartitions()).
very true
> Also, partitions() is one Java Object, it should be an implementation
detail, it's better to keep it as internal interface.
also true. when testing this i noticed the list should essentially be
treated as full of black boxes, but that's difficult to enforce w/o wrapping
the job object in a python version of Partition.
@davies @JoshRosen, what's the purpose of exposing an array of partition
objects in Scala&Java?
> I think len(rdd) has the potential to be confused with rdd.count(), since
calling len() on a Python collection usually returns the size of that
collection.
i agree
---
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]