Skip to content

Commit 8b8a49e

Browse files
Handling error locally
Signed-off-by: bharath-techie <[email protected]>
1 parent a1ac061 commit 8b8a49e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

datafusion/core/src/datasource/listing_table_factory.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,9 @@ impl TableProviderFactory for ListingTableFactory {
193193

194194
// Pre-warm statistics cache if collect_statistics is enabled
195195
if session_state.config().collect_statistics() {
196-
let _ = table.list_files_for_scan(state, &[], None).await?;
196+
if let Err(e) = table.list_files_for_scan(state, &[], None).await {
197+
log::warn!("Failed to pre-warm statistics cache: {}", e);
198+
}
197199
}
198200

199201
Ok(Arc::new(table))

0 commit comments

Comments
 (0)