[ https://issues.apache.org/jira/browse/SPARK-8373?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14585884#comment-14585884 ]
Sean Owen commented on SPARK-8373: ---------------------------------- Really the same as SPARK-6878 https://github.com/apache/spark/commit/51b306b930cfe03ad21af72a3a6ef31e6e626235 > 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 > > 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