Github user davies commented on the pull request:

    https://github.com/apache/spark/pull/2478#issuecomment-56552452
  
    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()).
    
    Also, partitions() is one Java Object, it should be an implementation 
detail, it's better to keep it as internal interface.
    
    len(rdd.partitions()) sounds more Pythonic, how about `len(rdd)`?  cc 
@JoshRosen 


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