c21 commented on a change in pull request #29804:
URL: https://github.com/apache/spark/pull/29804#discussion_r500100742
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala
##########
@@ -951,6 +951,17 @@ object SQLConf {
.checkValue(_ > 0, "the value of spark.sql.sources.bucketing.maxBuckets
must be greater than 0")
.createWithDefault(100000)
+ val AUTO_BUCKETED_SCAN_ENABLED =
+ buildConf("spark.sql.sources.bucketing.autoBucketedScan.enabled")
+ .doc("When true, decide whether to do bucketed scan on input tables
based on query plan " +
+ "automatically. Do not use bucketed scan if 1. query does not have
operators to utilize " +
+ "bucketing (e.g. join, group-by, etc), or 2. there's an exchange
operator between these " +
+ s"operators and table scan. Note when '${BUCKETING_ENABLED.key}' is
set to " +
+ "false, this configuration does not take any effect.")
+ .version("3.1.0")
+ .booleanConf
+ .createWithDefault(false)
Review comment:
@cloud-fan - thanks for pointing it out. Created
https://issues.apache.org/jira/browse/SPARK-33075 for followup, cc @viirya in
case there's any other regression for enabling auto bucketed scan, except
cached query.
----------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]