wangyum commented on a change in pull request #30325: URL: https://github.com/apache/spark/pull/30325#discussion_r523073946
########## File path: sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala ########## @@ -815,6 +815,15 @@ object SQLConf { .booleanConf .createWithDefault(true) + val HIVE_METASTORE_PARTITION_PRUNING_INSET_THRESHOLD = + buildStaticConf("spark.sql.hive.metastorePartitionPruningInSetThreshold") + .doc("The threshold of set size for InSet predicate when pruning partitions through Hive " + + "Metastore. Larger values may cause Hive metastore stack overflow.") + .version("3.1.0") + .intConf + .checkValue(_ > 0, "The value of metastorePartitionPruningInSetThreshold must be positive") + .createWithDefault(Int.MaxValue) Review comment: Set it to 1000 because the default value of `hive.exec.max.dynamic.partitions` is also 1000. ---------------------------------------------------------------- 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: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org