You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "viirya (via GitHub)" <gi...@apache.org> on 2023/06/28 22:24:00 UTC
[GitHub] [spark] viirya commented on a diff in pull request #41777: [SPARK-44232][SQL] add a config for auto refresh query result cache
viirya commented on code in PR #41777:
URL: https://github.com/apache/spark/pull/41777#discussion_r1245884847
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala:
##########
@@ -4292,6 +4292,14 @@ object SQLConf {
.checkValue(_ >= 0, "The threshold of cached local relations must not be negative")
.createWithDefault(64 * 1024 * 1024)
+ val QUERY_RESULT_CACHE_AUTO_REFRESH = buildConf("spark.sql.queryResultCache.autoRefresh.enabled")
+ .doc("When true, refresh the query result cache automatically if any of the tables " +
+ "referenced by the query gets updated. Note that, auto refresh won't be triggered if the " +
+ "table updates happen outside of this Spark application.")
Review Comment:
Hmm, if in same Spark application but in different SparkSession, will it be triggered?
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org