GitHub user maropu opened a pull request:
https://github.com/apache/spark/pull/21668
[SPARK-24690][SQL] Add a new config to control plan stats computation in
LogicalRelation
## What changes were proposed in this pull request?
This pr proposes to propose a new separate config so that `LogicalRelation`
can use `rowCount` to compute data statistics in logical plans. In the master,
we currently cannot enable `StarSchemaDetection.reorderStarJoins` because we
need to turn off CBO to enable it but `StarSchemaDetection` internally
references the `rowCount` that is used in LogicalRelation if CBO disabled.
## How was this patch tested?
Added tests in `DataFrameJoinSuite`.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/maropu/spark PlanStatsConf
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/21668.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 #21668
----
commit f0db73bcad7741ec06560a1b6bb50bb49483b954
Author: Takeshi Yamamuro <yamamuro@...>
Date: 2018-06-29T06:22:16Z
Fix
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]