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

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

Davies Liu created SPARK-4304:
---------------------------------

             Summary: 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.1.0, 1.0.2, 1.2.0
            Reporter: Davies Liu
            Priority: Blocker


{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