dongjoon-hyun commented on a change in pull request #21668: [SPARK-24690][SQL]
Add a config to control plan stats computation in LogicalRelation
URL: https://github.com/apache/spark/pull/21668#discussion_r349904500
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/LogicalRelation.scala
##########
@@ -41,7 +41,7 @@ case class LogicalRelation(
override def computeStats(): Statistics = {
catalogTable
- .flatMap(_.stats.map(_.toPlanStats(output, conf.cboEnabled)))
+ .flatMap(_.stats.map(_.toPlanStats(output, conf.planStatsEnabled)))
Review comment:
Oops. Maybe, this is another instance for the following?
```scala
- .flatMap(_.stats.map(_.toPlanStats(output, conf.planStatsEnabled)))
+ .flatMap(_.stats.map(_.toPlanStats(output, conf.cboEnabled ||
conf.planStatsEnabled)))
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]