LuciferYang commented on a change in pull request #30483:
URL: https://github.com/apache/spark/pull/30483#discussion_r563678846
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala
##########
@@ -838,6 +838,27 @@ object SQLConf {
.booleanConf
.createWithDefault(false)
+ val FILE_META_CACHE_PARQUET_ENABLED =
buildConf("spark.sql.fileMetaCache.parquet.enabled")
+ .doc("To indicate if enable parquet file meta cache, it is recommended to
enabled " +
+ "this config when multiple queries are performed on the same dataset,
default is false.")
+ .version("3.2.0")
+ .booleanConf
+ .createWithDefault(false)
+
+ val FILE_META_CACHE_ORC_ENABLED =
buildConf("spark.sql.fileMetaCache.orc.enabled")
+ .doc("To indicate if enable orc file meta cache, it is recommended to
enabled " +
+ "this config when multiple queries are performed on the same dataset,
default is false.")
+ .version("3.2.0")
+ .booleanConf
+ .createWithDefault(false)
+
+ val FILE_META_CACHE_TTL_SINCE_LAST_ACCESS =
+ buildConf("spark.sql.fileMetaCache.ttlSinceLastAccess")
+ .version("3.2.0")
+ .doc("Time-to-live for file metadata cache entry after last access, the
unit is seconds.")
+ .timeConf(TimeUnit.SECONDS)
+ .createWithDefault(3600L)
Review comment:
change default value to 1hour (3600s)
----------------------------------------------------------------
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]