Commit 53b54cb
Alain
[PYSPARK] Fix a typo in "fold" function in rdd.py
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 the result type.1 parent 6fe690d commit 53b54cb
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
827 | 827 | | |
828 | 828 | | |
829 | 829 | | |
830 | | - | |
| 830 | + | |
831 | 831 | | |
832 | 832 | | |
833 | 833 | | |
| |||
0 commit comments