mkleen commented on code in PR #20047:
URL: https://github.com/apache/datafusion/pull/20047#discussion_r3146323961


##########
datafusion/execution/src/cache/cache_manager.rs:
##########
@@ -330,8 +356,19 @@ pub struct CacheManager {
 
 impl CacheManager {
     pub fn try_new(config: &CacheManagerConfig) -> Result<Arc<Self>> {
-        let file_statistic_cache =
-            config.table_files_statistics_cache.as_ref().map(Arc::clone);
+        let file_statistic_cache = match &config.file_statistics_cache {
+            Some(fsc) if config.file_statistics_cache_limit > 0 => {
+                fsc.update_cache_limit(config.file_statistics_cache_limit);
+                Some(Arc::clone(fsc))
+            }
+            None if config.file_statistics_cache_limit > 0 => {

Review Comment:
   The behaviour change is on purpose see 
https://github.com/apache/datafusion/issues/19217 for more details. I 
documented now the change in the upgrade guide. 



-- 
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