You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Josh Rosen (JIRA)" <ji...@apache.org> on 2014/11/08 05:59:34 UTC

[jira] [Updated] (SPARK-4304) sortByKey() will fail on empty RDD

     [ https://issues.apache.org/jira/browse/SPARK-4304?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Josh Rosen updated SPARK-4304:
------------------------------
    Assignee: Davies Liu

> sortByKey() will fail on empty RDD
> ----------------------------------
>
>                 Key: SPARK-4304
>                 URL: https://issues.apache.org/jira/browse/SPARK-4304
>             Project: Spark
>          Issue Type: Bug
>          Components: PySpark
>    Affects Versions: 1.0.2, 1.1.0, 1.2.0
>            Reporter: Davies Liu
>            Assignee: Davies Liu
>            Priority: Blocker
>             Fix For: 1.1.1, 1.2.0, 1.0.3
>
>
> {code}
> >>> sc.parallelize(zip(range(4), range(0)), 5).sortByKey().count()
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "/Users/davies/work/spark/python/pyspark/rdd.py", line 532, in sortByKey
>     for i in range(0, numPartitions - 1)]
> IndexError: list index out of range
> >>>
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org