GitHub user nchammas opened a pull request:

    https://github.com/apache/spark/pull/218

    [SPARK-1308] Add partitions() method to PySpark RDDs

    I've added the `partitions()` method per [the discussion 
here](http://apache-spark-user-list.1001560.n3.nabble.com/How-many-partitions-is-my-RDD-split-into-td3072.html).
    
    Looking at [the instructions 
here](https://cwiki.apache.org/confluence/display/SPARK/Contributing+to+Spark), 
it is not clear how to add tests for this kind of modification to PySpark.
    
    `sbt/sbt test` has 1 test fail -- 
`org.apache.spark.sql.hive.execution.HiveCompatibilitySuite` -- but this 
appears to be unrelated to my change. Reverting my changes and re-reunning 
`assembly` and `test` yield the same result.
    
    First-time committer. Forgive me if I’ve messed anything up.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/nchammas/spark master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/218.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 #218
    
----
commit e972d3e4cee76d4e2841722701dac709a2f923c5
Author: Nicholas Chammas <[email protected]>
Date:   2014-03-24T22:03:27Z

    [SPARK-1308] Add partitions() method to PySpark RDDs
    
    Per the discussion here:
    http://apache-spark-user-list.1001560.n3.nabble.com/How-many-partitions-
    is-my-RDD-split-into-td3072.html
    
    Looking at the instructions here
    (https://cwiki.apache.org/confluence/display/SPARK/Contributing+to+Spark
    ), it is not clear how to add tests for this kind of modification to
    PySpark.
    
    First-time committer. Forgive me if I’ve messed anything up.

----


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

Reply via email to