GitHub user gatorsmile opened a pull request:

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

    [SPARK-19658] [SQL] Set NumPartitions of RepartitionByExpression In Analyzer

    ### What changes were proposed in this pull request?
    
    Currently, if `NumPartitions` is not set in RepartitionByExpression, we 
will set it using `spark.sql.shuffle.partitions` during Planner. However, this 
is not following the general resolution process. This PR is to set it in 
`Analyzer` and then `Optimizer` can use the value for plan optimization.
    
    ### How was this patch tested?
    
    Added a test case.

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

    $ git pull https://github.com/gatorsmile/spark resolveRepartition

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

    https://github.com/apache/spark/pull/16988.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 #16988
    
----
commit b3df296f9e2ca9eeb61b146bf1cd5611fce0f253
Author: Xiao Li <gatorsm...@gmail.com>
Date:   2017-02-19T04:28:39Z

    Merge remote-tracking branch 'upstream/master' into resolveRepartition

commit c276917bfb631f2a75ea5b3036933f57968abe56
Author: Xiao Li <gatorsm...@gmail.com>
Date:   2017-02-19T07:55:02Z

    fix.

----


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