spark-instrumented-optimizer/sql/core/src
Xiao Li dc005ed53c [SPARK-19658][SQL] Set NumPartitions of RepartitionByExpression In Parser
### 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 `Parser` and then `Optimizer` can use the value for plan optimization.

### How was this patch tested?

Added a test case.

Author: Xiao Li <gatorsmile@gmail.com>

Closes #16988 from gatorsmile/resolveRepartition.
2017-02-22 17:26:56 -08:00
..
main [SPARK-19658][SQL] Set NumPartitions of RepartitionByExpression In Parser 2017-02-22 17:26:56 -08:00
test [SPARK-19658][SQL] Set NumPartitions of RepartitionByExpression In Parser 2017-02-22 17:26:56 -08:00