Github user sryza commented on a diff in the pull request:
https://github.com/apache/spark/pull/705#discussion_r13169034
--- Diff: python/pyspark/rdd.py ---
@@ -1131,7 +1131,18 @@ def _mergeCombiners(iterator):
combiners[k] = mergeCombiners(combiners[k], v)
return combiners.iteritems()
return shuffled.mapPartitions(_mergeCombiners)
-
+
+ def aggregateByKey(self, zeroValue, seqFunc, combFunc,
numPartitions=None):
+ """
+ Aggregate the values of each key, using given combine functions
and a neutral "zero value".
+ This function can return a different result type, U, than the type
of the values in this RDD,
+ V. Thus, we need one operation for merging a T into a U and one
operation for merging two U's,
--- End diff --
My bad. Uploaded a patch that fixes this.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---