You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spark.apache.org by prabinb <gi...@git.apache.org> on 2014/03/04 14:32:52 UTC

[GitHub] spark pull request: SPARK-977 Added Python RDD.zip function

GitHub user prabinb opened a pull request:

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

    SPARK-977 Added Python RDD.zip function

    

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

    $ git pull https://github.com/prabinb/spark python-api-zip

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

    https://github.com/apache/spark/pull/76.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 #76
    
----
commit 87ab138a79234c8e2ff502560db9353682a473eb
Author: Prabin Banka <pr...@imaginea.com>
Date:   2014-01-23T12:11:33Z

    Added Python RDD.zip function

----


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-977 Added Python RDD.zip function

Posted by mateiz <gi...@git.apache.org>.
Github user mateiz commented on the pull request:

    https://github.com/apache/spark/pull/76#issuecomment-36714999
  
    Jenkins, this is ok to test


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-977 Added Python RDD.zip function

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/76#issuecomment-36716620
  
    Merged build started.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-977 Added Python RDD.zip function

Posted by mateiz <gi...@git.apache.org>.
Github user mateiz commented on the pull request:

    https://github.com/apache/spark/pull/76#issuecomment-37229918
  
    Thanks Prabin; I've merged this.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-977 Added Python RDD.zip function

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/76#issuecomment-36623694
  
    Can one of the admins verify this patch?


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-977 Added Python RDD.zip function

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/76#issuecomment-36716619
  
     Merged build triggered.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-977 Added Python RDD.zip function

Posted by mateiz <gi...@git.apache.org>.
Github user mateiz commented on a diff in the pull request:

    https://github.com/apache/spark/pull/76#discussion_r10289240
  
    --- Diff: python/pyspark/rdd.py ---
    @@ -1057,6 +1057,24 @@ def coalesce(self, numPartitions, shuffle=False):
             jrdd = self._jrdd.coalesce(numPartitions)
             return RDD(jrdd, self.ctx, self._jrdd_deserializer)
     
    +    def zip(self, other):
    +        """
    +        Zips this RDD with another one, returning key-value pairs with the first element in each RDD
    +        second element in each RDD, etc. Assumes that the two RDDs have the *same number of
    +        * partitions* and the *same number of elements in each partition* (e.g. one was made through
    +        * a map on the other).
    --- End diff --
    
    There seem to be some extra `*`'s at the beginning of this


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-977 Added Python RDD.zip function

Posted by prabinb <gi...@git.apache.org>.
Github user prabinb commented on a diff in the pull request:

    https://github.com/apache/spark/pull/76#discussion_r10289574
  
    --- Diff: python/pyspark/rdd.py ---
    @@ -1057,6 +1057,24 @@ def coalesce(self, numPartitions, shuffle=False):
             jrdd = self._jrdd.coalesce(numPartitions)
             return RDD(jrdd, self.ctx, self._jrdd_deserializer)
     
    +    def zip(self, other):
    +        """
    +        Zips this RDD with another one, returning key-value pairs with the first element in each RDD
    +        second element in each RDD, etc. Assumes that the two RDDs have the *same number of
    +        * partitions* and the *same number of elements in each partition* (e.g. one was made through
    +        * a map on the other).
    --- End diff --
    
    removed the *'s.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-977 Added Python RDD.zip function

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/76#issuecomment-36719525
  
    All automated tests passed.
    Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/13001/


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-977 Added Python RDD.zip function

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/76#issuecomment-36719524
  
    Merged build finished.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: SPARK-977 Added Python RDD.zip function

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

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


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---