diff options
author | Zhenhua Wang <wzh_zju@163.com> | 2017-01-03 12:19:52 +0800 |
---|---|---|
committer | Wenchen Fan <wenchen@databricks.com> | 2017-01-03 12:19:52 +0800 |
commit | ae83c211257c508989c703d54f2aeec8b2b5f14d (patch) | |
tree | ffad724a91c46592dab3a3118d2082bf614d1654 /python | |
parent | a6cd9dbc6095570e93dab1d93671abecdce40c25 (diff) | |
download | spark-ae83c211257c508989c703d54f2aeec8b2b5f14d.tar.gz spark-ae83c211257c508989c703d54f2aeec8b2b5f14d.tar.bz2 spark-ae83c211257c508989c703d54f2aeec8b2b5f14d.zip |
[SPARK-18998][SQL] Add a cbo conf to switch between default statistics and estimated statistics
## What changes were proposed in this pull request?
We add a cbo configuration to switch between default stats and estimated stats.
We also define a new statistics method `planStats` in LogicalPlan with conf as its parameter, in order to pass the cbo switch and other estimation related configurations in the future. `planStats` is used on the caller sides (i.e. in Optimizer and Strategies) to make transformation decisions based on stats.
## How was this patch tested?
Add a test case using a dummy LogicalPlan.
Author: Zhenhua Wang <wzh_zju@163.com>
Closes #16401 from wzhfy/cboSwitch.
Diffstat (limited to 'python')
0 files changed, 0 insertions, 0 deletions