cloud-fan commented on a change in pull request #30325:
URL: https://github.com/apache/spark/pull/30325#discussion_r522963666
##########
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:
shall we give a reasonable default value?
----------------------------------------------------------------
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]