GitHub user nongli opened a pull request:

    https://github.com/apache/spark/pull/9364

    [SPARK-11410] [SQL] Add APIs to provide functionality similar to Hive…

    …'s DISTRIBUTE BY
    
    DISTRIBUTE BY allows the user to hash partition the data by specified 
exprs. It also allows for
    optioning sorting within each resulting partition. There is no required 
relationship between the
    exprs for partitioning and sorting (i.e. one does not need to be a prefix 
of the other).
    
    This patch adds to APIs to DataFrames which can be used together to provide 
this functionality:
      1. distributeBy() which partitions the data frame into a specified number 
of partitions using the
         partitioning exprs.
      2. localSort() which sorts each partition using the provided sorting 
exprs.
    
    To get the DISTRIBUTE BY functionality, the user simply does: 
df.distributeBy(...).localSort(...)

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

    $ git pull https://github.com/nongli/spark spark-11410

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

    https://github.com/apache/spark/pull/9364.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 #9364
    
----
commit 71a159f8844ecafb964c67547e5ce88658aa5c25
Author: Nong Li <[email protected]>
Date:   2015-10-29T21:09:24Z

    [SPARK-11410] [SQL] Add APIs to provide functionality similar to Hive's 
DISTRIBUTE BY
    
    DISTRIBUTE BY allows the user to hash partition the data by specified 
exprs. It also allows for
    optioning sorting within each resulting partition. There is no required 
relationship between the
    exprs for partitioning and sorting (i.e. one does not need to be a prefix 
of the other).
    
    This patch adds to APIs to DataFrames which can be used together to provide 
this functionality:
      1. distributeBy() which partitions the data frame into a specified number 
of partitions using the
         partitioning exprs.
      2. localSort() which sorts each partition using the provided sorting 
exprs.
    
    To get the DISTRIBUTE BY functionality, the user simply does: 
df.distributeBy(...).localSort(...)

----


---
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]

Reply via email to