GitHub user wzhfy opened a pull request:
https://github.com/apache/spark/pull/16401
[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.
Optimizer and Strategies) to make transformation decisions based on stats.
## How was this patch tested?
Add a test case using a dummy LogicalPlan.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/wzhfy/spark cboSwitch
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/16401.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 #16401
----
commit 53c1b26e9fc7c253b1654145f910e7881db34de7
Author: Zhenhua Wang <[email protected]>
Date: 2016-12-24T15:43:53Z
add cbo switch
----
---
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]