diff --git a/datafusion/core/tests/parquet/file_statistics.rs b/datafusion/core/tests/parquet/file_statistics.rs index 7a008fb6d19e3..ad4dcf65065f1 100644 --- a/datafusion/core/tests/parquet/file_statistics.rs +++ b/datafusion/core/tests/parquet/file_statistics.rs @@ -155,7 +155,7 @@ async fn get_listing_table( ) -> ListingTable { let schema = opt .infer_schema( - &SessionState::with_config_rt( + &SessionState::new_with_config_rt( SessionConfig::default(), Arc::new(RuntimeEnv::default()), ),