GitHub user davies opened a pull request:

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

    [SPARK-14137] [SQL] Cleanup hash join

    ## What changes were proposed in this pull request?
    
    This PR did a few cleanup on HashedRelation and HashJoin:
    
    1) Merge HashedRelation and UniqueHashedRelation together
    2) Return an iterator from HashedRelation, so we donot need a create many 
UnsafeRow objects.
    3) Return a copy of HashedRelation for thread-safety in BroadcastJoin, so 
we can re-use the UnafeRow objects.
    4) Cleanup HashJoin, share most of the code between BroadcastHashJoin and 
ShuffleHashJoin
    5) Removed UniqueLongHashedRelation, which will be replaced by 
LongUnsafeMap (another PR).
    6) Update benchmark, before this patch, the selectivity of joins are too 
high.
    
    ## How was this patch tested?
    
    Existing tests.
    
    


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

    $ git pull https://github.com/davies/spark cleanup_hash

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

    https://github.com/apache/spark/pull/12102.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 #12102
    
----
commit 52ed2997dd1b6f65728cb7bfa1c64295e20d91fa
Author: Davies Liu <[email protected]>
Date:   2016-03-31T22:44:06Z

    clean hash join

----


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