@@ -1164,6 +1164,7 @@ mod tests {
11641164 use crate :: config:: ConfigOptions ;
11651165 use crate :: datasource:: file_format:: parquet:: test_util:: store_parquet;
11661166 use crate :: datasource:: file_format:: test_util:: scan_format;
1167+ use crate :: datasource:: file_format:: FileFormat ;
11671168 use crate :: datasource:: listing:: { FileRange , PartitionedFile } ;
11681169 use crate :: datasource:: object_store:: ObjectStoreUrl ;
11691170 use crate :: execution:: options:: CsvReadOptions ;
@@ -1660,7 +1661,7 @@ mod tests {
16601661 async fn parquet_exec_with_projection ( ) -> Result < ( ) > {
16611662 let testdata = crate :: test_util:: parquet_test_data ( ) ;
16621663 let filename = "alltypes_plain.parquet" ;
1663- let format = ParquetFormat :: default ( ) ;
1664+ let format = ParquetFormat :: new ( ConfigOptions :: new ( ) . into_shareable ( ) ) ;
16641665 let parquet_exec =
16651666 scan_format ( & format, & testdata, filename, Some ( vec ! [ 0 , 1 , 2 ] ) , None )
16661667 . await
@@ -1742,7 +1743,7 @@ mod tests {
17421743 let meta = local_unpartitioned_file ( filename) ;
17431744
17441745 let store = Arc :: new ( LocalFileSystem :: new ( ) ) as _ ;
1745- let file_schema = ParquetFormat :: default ( )
1746+ let file_schema = ParquetFormat :: new ( session_ctx . config_options ( ) )
17461747 . infer_schema ( & store, & [ meta. clone ( ) ] )
17471748 . await ?;
17481749
@@ -1789,7 +1790,7 @@ mod tests {
17891790
17901791 let meta = local_unpartitioned_file ( filename) ;
17911792
1792- let schema = ParquetFormat :: default ( )
1793+ let schema = ParquetFormat :: new ( session_ctx . config_options ( ) )
17931794 . infer_schema ( & store, & [ meta. clone ( ) ] )
17941795 . await
17951796 . unwrap ( ) ;
@@ -2477,7 +2478,7 @@ mod tests {
24772478
24782479 let meta = local_unpartitioned_file ( filename) ;
24792480
2480- let schema = ParquetFormat :: default ( )
2481+ let schema = ParquetFormat :: new ( session_ctx . config_options ( ) )
24812482 . infer_schema ( & store, & [ meta. clone ( ) ] )
24822483 . await
24832484 . unwrap ( ) ;
0 commit comments