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

Andrew Or closed SPARK-8373.
----------------------------
          Resolution: Fixed
       Fix Version/s: 1.5.0
                      1.4.1
            Assignee: Shixiong Zhu
    Target Version/s: 1.4.1, 1.5.0

> 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
>    Affects Versions: 1.2.0
>            Reporter: Shixiong Zhu
>            Assignee: Shixiong Zhu
>            Priority: Minor
>             Fix For: 1.4.1, 1.5.0
>
>
> 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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to