GitHub user mattf opened a pull request:
https://github.com/apache/spark/pull/2478
[SPARK-3580] add 'partitions' property to PySpark RDD
'rdd.partitions' is available in scala&java, primarily used for its
size() method to get the number of partitions. pyspark instead has a
getNumPartitions() call and no access to 'partitions'
this change adds 'partitions' to pyspark's rdd, allowing for
len(rdd.partitions) to get the number of partitions in a way familiar
to python developers
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/mattf/spark SPARK-3580
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/2478.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #2478
----
commit 96316e4bcbce345ed9ba0f6f68c70508d102a4cc
Author: Matthew Farrellee <[email protected]>
Date: 2014-09-21T13:49:58Z
[SPARK-3580] add 'partitions' property to PySpark RDD
'rdd.partitions' is available in scala&java, primarily used for its
size() method to get the number of partitions. pyspark instead has a
getNumPartitions() call and no access to 'partitions'
this change adds 'partitions' to pyspark's rdd, allowing for
len(rdd.partitions) to get the number of partitions in a way familiar
to python developers
----
---
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]