You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Ai He (JIRA)" <ji...@apache.org> on 2015/05/17 01:51:00 UTC

[jira] [Updated] (SPARK-7683) Confusing behavior of fold function of RDD in pyspark

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

Ai He updated SPARK-7683:
-------------------------
     Target Version/s:   (was: 2+)
    Affects Version/s: 1.3.1

> Confusing behavior of fold function of RDD in pyspark
> -----------------------------------------------------
>
>                 Key: SPARK-7683
>                 URL: https://issues.apache.org/jira/browse/SPARK-7683
>             Project: Spark
>          Issue Type: Bug
>          Components: PySpark
>    Affects Versions: 1.3.1
>            Reporter: Ai He
>            Priority: Minor
>
> This will make the “fold” function consistent with the "fold" in rdd.scala and other "aggregate" functions where “acc” goes first. Otherwise, users have to write a lambda function like “lambda x, y: op(y, x)” if they want to use “zeroValue” to change the result type.



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