kumarUjjawal commented on code in PR #22950:
URL: https://github.com/apache/datafusion/pull/22950#discussion_r3427952064


##########
datafusion/catalog-listing/src/table.rs:
##########
@@ -187,6 +188,12 @@ pub struct ListingTable {
     definition: Option<String>,
     /// Cache for collected file statistics
     collected_statistics: Option<Arc<dyn FileStatisticsCache>>,
+    /// Cache scoped to this [`ListingTable`].
+    ///
+    /// Anonymous tables do not have a stable table id in the shared cache key
+    /// and may read the same path with different explicit schemas. Use this
+    /// cache for those tables rather than populating the shared session cache.
+    local_statistics_cache: Arc<dyn FileStatisticsCache>,

Review Comment:
   Sounds good Thanks for the feedback.



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