Details
-
Sub-task
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
1.3.1
Description
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.
Attachments
Issue Links
- is duplicated by
-
SPARK-12595 fold should pass arguments to op in the correct order
- Resolved
- relates to
-
SPARK-6416 Document that RDD.fold() requires the operator to be commutative
- Resolved
- links to