@@ -26,13 +26,15 @@ use super::PartitionedFile;
2626use  crate :: datasource:: file_format:: file_compression_type:: { 
2727    FileCompressionType ,  FileTypeExt , 
2828} ; 
29+ #[ cfg( feature = "parquet" ) ]  
30+ use  crate :: datasource:: file_format:: parquet:: ParquetFormat ; 
2931use  crate :: datasource:: physical_plan:: { 
3032    is_plan_streaming,  FileScanConfig ,  FileSinkConfig , 
3133} ; 
3234use  crate :: datasource:: { 
3335    file_format:: { 
3436        arrow:: ArrowFormat ,  avro:: AvroFormat ,  csv:: CsvFormat ,  json:: JsonFormat , 
35-         parquet :: ParquetFormat ,   FileFormat , 
37+         FileFormat , 
3638    } , 
3739    get_statistics_with_limit, 
3840    listing:: ListingTableUrl , 
@@ -147,6 +149,7 @@ impl ListingTableConfig {
147149            FileType :: JSON  => Arc :: new ( 
148150                JsonFormat :: default ( ) . with_file_compression_type ( file_compression_type) , 
149151            ) , 
152+             #[ cfg( feature = "parquet" ) ]  
150153            FileType :: PARQUET  => Arc :: new ( ParquetFormat :: default ( ) ) , 
151154        } ; 
152155
@@ -1004,15 +1007,15 @@ mod tests {
10041007    use  std:: fs:: File ; 
10051008
10061009    use  super :: * ; 
1010+     #[ cfg( feature = "parquet" ) ]  
1011+     use  crate :: datasource:: file_format:: parquet:: ParquetFormat ; 
10071012    use  crate :: datasource:: { provider_as_source,  MemTable } ; 
10081013    use  crate :: execution:: options:: ArrowReadOptions ; 
10091014    use  crate :: physical_plan:: collect; 
10101015    use  crate :: prelude:: * ; 
10111016    use  crate :: { 
10121017        assert_batches_eq, 
1013-         datasource:: file_format:: { 
1014-             avro:: AvroFormat ,  file_compression_type:: FileTypeExt ,  parquet:: ParquetFormat , 
1015-         } , 
1018+         datasource:: file_format:: { avro:: AvroFormat ,  file_compression_type:: FileTypeExt } , 
10161019        execution:: options:: ReadOptions , 
10171020        logical_expr:: { col,  lit} , 
10181021        test:: { columns,  object_store:: register_test_store} , 
@@ -1075,6 +1078,7 @@ mod tests {
10751078        Ok ( ( ) ) 
10761079    } 
10771080
1081+     #[ cfg( feature = "parquet" ) ]  
10781082    #[ tokio:: test]  
10791083    async  fn  load_table_stats_by_default ( )  -> Result < ( ) >  { 
10801084        let  testdata = crate :: test_util:: parquet_test_data ( ) ; 
@@ -1098,6 +1102,7 @@ mod tests {
10981102        Ok ( ( ) ) 
10991103    } 
11001104
1105+     #[ cfg( feature = "parquet" ) ]  
11011106    #[ tokio:: test]  
11021107    async  fn  load_table_stats_when_no_stats ( )  -> Result < ( ) >  { 
11031108        let  testdata = crate :: test_util:: parquet_test_data ( ) ; 
@@ -1122,6 +1127,7 @@ mod tests {
11221127        Ok ( ( ) ) 
11231128    } 
11241129
1130+     #[ cfg( feature = "parquet" ) ]  
11251131    #[ tokio:: test]  
11261132    async  fn  test_try_create_output_ordering ( )  { 
11271133        let  testdata = crate :: test_util:: parquet_test_data ( ) ; 
0 commit comments