GitHub user maropu opened a pull request:

    [SPARK-19426][SQL] Custom coalescer for Dataset

    ## What changes were proposed in this pull request?
    This pr added a new API for `coalesce` in `Dataset`; users can specify the 
custom coalescer which reduces an input Dataset into fewer partitions. This 
coalescer implementation is the same with the one in `RDD#coalesce` added in 
#11865 (SPARK-14042).
    This is the rework of #16766.
    ## How was this patch tested?
    Added tests in `DatasetSuite`.

You can merge this pull request into a Git repository by running:

    $ git pull pr16766

Alternatively you can review and apply these changes as the patch at:

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #18861
commit 9abcd75474f188d7b9f4ed4caab6bb8e98c1da4d
Author: Marius van Niekerk <>
Date:   2016-11-07T22:06:38Z

    Implement custom coalesce

commit bb7f9b0ab06ec0be8666e14846e19fe0c28e5143
Author: Takeshi Yamamuro <>
Date:   2017-08-06T14:44:51Z

    Add more fixes


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 or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to