You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2015/06/15 10:35:00 UTC

[jira] [Assigned] (SPARK-8373) When an RDD has no partition, Python sum will throw "Can not reduce() empty RDD"

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

Apache Spark reassigned SPARK-8373:
-----------------------------------

    Assignee: Apache Spark

> When an RDD has no partition, Python sum will throw "Can not reduce() empty RDD"
> --------------------------------------------------------------------------------
>
>                 Key: SPARK-8373
>                 URL: https://issues.apache.org/jira/browse/SPARK-8373
>             Project: Spark
>          Issue Type: Bug
>          Components: PySpark
>            Reporter: Shixiong Zhu
>            Assignee: Apache Spark
>
> The issue is because "sum" uses "reduce". Replacing it with "fold" will fix it.



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