GitHub user lianhuiwang opened a pull request:

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

    [SPARK-15616] [SQL] Metastore relation should fallback to HDFS size of 
partitions that are involved in Query for JoinSelection.

    ## What changes were proposed in this pull request?
    Currently if some partitions of a partitioned table are used in join 
operation we rely on Metastore returned size of table to calculate if we can 
convert the operation to Broadcast join. 
    if Filter can prune some partitions, Hive can prune partition before 
determining to use broadcast joins according to HDFS size of partitions that 
are involved in Query.So sparkSQL needs it that can improve join's performance 
for partitioned table.
    
    ## How was this patch tested?
    add unit tests.


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

    $ git pull https://github.com/lianhuiwang/spark partition_broadcast_2

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

    https://github.com/apache/spark/pull/18193.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 #18193
    
----
commit 5591a1c7623e4c668b257c940b5b2663f67acf51
Author: lianhuiwang <lianhuiwan...@gmail.com>
Date:   2017-06-04T07:02:23Z

    init commit

----


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