cloud-fan commented on code in PR #41777:
URL: https://github.com/apache/spark/pull/41777#discussion_r1245908061


##########
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:
   Yes, the key is that this Spark application (spark driver) needs to be aware 
of table updates, which is not possible if it happens in other systems or other 
Spark applications.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to