Github user wzhfy commented on a diff in the pull request:
https://github.com/apache/spark/pull/14712#discussion_r75438629
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/LogicalPlan.scala
---
@@ -95,6 +95,12 @@ abstract class LogicalPlan extends
QueryPlan[LogicalPlan] with Logging {
}
/**
+ * Estimate complete [[Statistics]] for this plan. Each plan need to
override this to get
+ * complete statistics.
+ */
+ def completeStats: Statistics = statistics
--- End diff --
In this way, we can separate cbo path from the original path when we add a
conf for cbo in following tasks. If cbo is open, we use completeStats, if it is
off, we still use the original statistics.
When cbo is mature in the future, we can remove the original statistics and
use the new completeStats instead.
---
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]