We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d839d7a commit 45dcc07Copy full SHA for 45dcc07
1 file changed
datafusion/core/src/execution/context/mod.rs
@@ -1761,7 +1761,9 @@ impl SessionContext {
1761
let config = ListingTableConfig::new(table_path)
1762
.with_listing_options(options)
1763
.with_schema(resolved_schema);
1764
- let table = ListingTable::try_new(config)?.with_definition(sql_definition);
+ let table = ListingTable::try_new(config)?.with_definition(sql_definition).with_cache(
1765
+ self.runtime_env().cache_manager.get_file_statistic_cache()
1766
+ );
1767
self.register_table(table_ref, Arc::new(table))?;
1768
Ok(())
1769
}
0 commit comments