GitHub user ooq opened a pull request:

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

    [SPARK-16524][SQL] Add RowBatch and RowBasedHashMapGenerator

    ## What changes were proposed in this pull request?
    
    This PR is the first step for the following feature:
    
    For hash aggregation in Spark SQL, we use a fast aggregation hashmap to act 
as a "cache" in order to boost aggregation performance. Previously, the hashmap 
is backed by a `ColumnarBatch`. This has performance issues when we have wide 
schema for the aggregation table (large number of key fields or value fields). 
    In this JIRA, we support another implementation of fast hashmap, which is 
backed by a `RowBatch`. We then automatically pick between the two 
implementations based on certain knobs.
    
    In this first-step PR, implementations for `RowBatch` and 
`RowBasedHashMapGenerator` are added. 
    
    ## How was this patch tested?
    
    `RowBatch` could be tested through unit tests (added later). Otherwise, 
tests and benchmarks will be added in a separate PR in the series. 
    


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

    $ git pull https://github.com/ooq/spark rowbasedfastaggmap-pr1

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

    https://github.com/apache/spark/pull/14174.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 #14174
    
----
commit c87f26b318b5d673ac95454df5c1cb9a56c677eb
Author: Qifan Pu <qifan...@gmail.com>
Date:   2016-07-13T07:35:06Z

    add RowBatch and RowBasedHashMapGenerator

----


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

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to