GitHub user rxin opened a pull request:
https://github.com/apache/spark/pull/14576
[SPARK-16391][SQL] ReduceAggregator and partial aggregation for
reduceGroups function - WIP
## What changes were proposed in this pull request?
This patch introduces a new ReduceAggregator interface that is a subclass
of Aggregator. ReduceAggregator only requires a single associative and
commutative reduce function. ReduceAggregator is also used to implement
KeyValueGroupedDataset.reduceGroups in order to support partial aggregation.
I'm mostly leaving this up here for feedback.
## How was this patch tested?
WIP
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/rxin/spark reduceAggregator
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/14576.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #14576
----
commit 11357737ad58a2a6c1ea2e17026669fc138f556c
Author: Liang-Chi Hsieh <[email protected]>
Date: 2016-07-15T14:06:41Z
Support partial aggregation for reduceGroups.
commit 7e8d8c116552642573cc89bd11fc2e82f2a0f82a
Author: Liang-Chi Hsieh <[email protected]>
Date: 2016-07-18T08:45:32Z
Add ReduceAggregator.
commit 9de56ee3215d2eaa48c5951b2e5a00dc479d46ea
Author: Reynold Xin <[email protected]>
Date: 2016-07-19T06:14:08Z
Merge pull request #14222 from viirya/improve-reducegroups
[SPARK-16391][SQL] KeyValueGroupedDataset.reduceGroups should support
partial aggregation
commit 53d4879e290c32d3565d504e96c8302e0fceff9b
Author: Reynold Xin <[email protected]>
Date: 2016-07-19T17:31:00Z
initial checkin
commit f9cee8268c31cfce53e186d4135e4210cde03d1d
Author: Reynold Xin <[email protected]>
Date: 2016-08-10T05:39:31Z
Merge branch 'master' into reduceAggregator
commit 19b00f55f1f66b4170ece328b5039e6bbbfa2209
Author: Reynold Xin <[email protected]>
Date: 2016-08-10T05:45:53Z
Updated some comments
----
---
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.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]