@@ -118,7 +118,7 @@ mod tests {
118118 ) )
119119 . with_file_compression_type ( file_compression_type)
120120 . with_newlines_in_values ( false )
121- . with_projection ( Some ( vec ! [ 0 , 2 , 4 ] ) )
121+ . with_projection_indices ( Some ( vec ! [ 0 , 2 , 4 ] ) )
122122 . build ( ) ;
123123
124124 assert_eq ! ( 13 , config. file_schema( ) . fields( ) . len( ) ) ;
@@ -183,7 +183,7 @@ mod tests {
183183 ) )
184184 . with_newlines_in_values ( false )
185185 . with_file_compression_type ( file_compression_type. to_owned ( ) )
186- . with_projection ( Some ( vec ! [ 4 , 0 , 2 ] ) )
186+ . with_projection_indices ( Some ( vec ! [ 4 , 0 , 2 ] ) )
187187 . build ( ) ;
188188 assert_eq ! ( 13 , config. file_schema( ) . fields( ) . len( ) ) ;
189189 let csv = DataSourceExec :: from_data_source ( config) ;
@@ -373,7 +373,7 @@ mod tests {
373373 . with_table_partition_cols ( vec ! [ Field :: new( "date" , DataType :: Utf8 , false ) ] )
374374 // We should be able to project on the partition column
375375 // Which is supposed to be after the file fields
376- . with_projection ( Some ( vec ! [ 0 , num_file_schema_fields] ) )
376+ . with_projection_indices ( Some ( vec ! [ 0 , num_file_schema_fields] ) )
377377 . build ( ) ;
378378
379379 // we don't have `/date=xx/` in the path but that is ok because
0 commit comments