@@ -433,7 +433,7 @@ mod tests {
433433 . unwrap ( ) ;
434434 let actual_paths_to_apply_for_seq_4: Vec < String > = delete_files_to_apply_for_seq_4
435435 . into_iter ( )
436- . map ( |file| file. file_path )
436+ . map ( |file| file. file_path ( ) . to_string ( ) )
437437 . collect ( ) ;
438438
439439 assert_eq ! (
@@ -447,7 +447,7 @@ mod tests {
447447 . unwrap ( ) ;
448448 let actual_paths_to_apply_for_seq_5: Vec < String > = delete_files_to_apply_for_seq_5
449449 . into_iter ( )
450- . map ( |file| file. file_path )
450+ . map ( |file| file. file_path ( ) . to_string ( ) )
451451 . collect ( ) ;
452452 assert_eq ! (
453453 actual_paths_to_apply_for_seq_5,
@@ -460,7 +460,7 @@ mod tests {
460460 . unwrap ( ) ;
461461 let actual_paths_to_apply_for_seq_6: Vec < String > = delete_files_to_apply_for_seq_6
462462 . into_iter ( )
463- . map ( |file| file. file_path )
463+ . map ( |file| file. file_path ( ) . to_string ( ) )
464464 . collect ( ) ;
465465 assert_eq ! (
466466 actual_paths_to_apply_for_seq_6,
@@ -477,7 +477,7 @@ mod tests {
477477 let actual_paths_to_apply_for_partitioned_file: Vec < String > =
478478 delete_files_to_apply_for_partitioned_file
479479 . into_iter ( )
480- . map ( |file| file. file_path )
480+ . map ( |file| file. file_path ( ) . to_string ( ) )
481481 . collect ( ) ;
482482 assert_eq ! (
483483 actual_paths_to_apply_for_partitioned_file,
@@ -532,7 +532,7 @@ mod tests {
532532 . unwrap ( ) ;
533533 let actual_paths_to_apply_for_seq_4: Vec < String > = delete_files_to_apply_for_seq_4
534534 . into_iter ( )
535- . map ( |file| file. file_path )
535+ . map ( |file| file. file_path ( ) . to_string ( ) )
536536 . collect ( ) ;
537537
538538 assert_eq ! (
@@ -546,7 +546,7 @@ mod tests {
546546 . unwrap ( ) ;
547547 let actual_paths_to_apply_for_seq_5: Vec < String > = delete_files_to_apply_for_seq_5
548548 . into_iter ( )
549- . map ( |file| file. file_path )
549+ . map ( |file| file. file_path ( ) . to_string ( ) )
550550 . collect ( ) ;
551551 assert_eq ! (
552552 actual_paths_to_apply_for_seq_5,
@@ -559,7 +559,7 @@ mod tests {
559559 . unwrap ( ) ;
560560 let actual_paths_to_apply_for_seq_6: Vec < String > = delete_files_to_apply_for_seq_6
561561 . into_iter ( )
562- . map ( |file| file. file_path )
562+ . map ( |file| file. file_path ( ) . to_string ( ) )
563563 . collect ( ) ;
564564 assert_eq ! (
565565 actual_paths_to_apply_for_seq_6,
@@ -575,7 +575,7 @@ mod tests {
575575 let actual_paths_to_apply_for_different_partition: Vec < String > =
576576 delete_files_to_apply_for_different_partition
577577 . into_iter ( )
578- . map ( |file| file. file_path )
578+ . map ( |file| file. file_path ( ) . to_string ( ) )
579579 . collect ( ) ;
580580 assert ! ( actual_paths_to_apply_for_different_partition. is_empty( ) ) ;
581581
@@ -587,7 +587,7 @@ mod tests {
587587 let actual_paths_to_apply_for_different_spec: Vec < String > =
588588 delete_files_to_apply_for_different_spec
589589 . into_iter ( )
590- . map ( |file| file. file_path )
590+ . map ( |file| file. file_path ( ) . to_string ( ) )
591591 . collect ( ) ;
592592 assert ! ( actual_paths_to_apply_for_different_spec. is_empty( ) ) ;
593593 }
@@ -608,7 +608,7 @@ mod tests {
608608 . get_deletes_for_data_file ( & data_file_a, Some ( 0 ) )
609609 . unwrap ( ) ;
610610 assert_eq ! ( deletes_for_a. len( ) , 1 ) ;
611- assert_eq ! ( deletes_for_a[ 0 ] . file_path, pos_delete. file_path( ) ) ;
611+ assert_eq ! ( deletes_for_a[ 0 ] . file_path( ) , pos_delete. file_path( ) ) ;
612612
613613 // The delete references data file A, so it must not apply to data file B
614614 // even though B shares A's partition.
@@ -776,7 +776,7 @@ mod tests {
776776 . get_deletes_for_data_file ( & data_file, Some ( 0 ) )
777777 . unwrap ( )
778778 . into_iter ( )
779- . map ( |delete| delete. file_path )
779+ . map ( |delete| delete. file_path ( ) . to_string ( ) )
780780 . collect ( ) ;
781781 actual_paths. sort ( ) ;
782782
@@ -813,7 +813,7 @@ mod tests {
813813 . get_deletes_for_data_file ( & data_file, Some ( 0 ) )
814814 . unwrap ( )
815815 . into_iter ( )
816- . map ( |delete| delete. file_path )
816+ . map ( |delete| delete. file_path ( ) . to_string ( ) )
817817 . collect ( ) ;
818818 actual_paths. sort ( ) ;
819819
@@ -852,7 +852,10 @@ mod tests {
852852 . get_deletes_for_data_file ( & data_file, Some ( 0 ) )
853853 . unwrap ( ) ;
854854 assert_eq ! ( deletes_for_referenced. len( ) , 1 ) ;
855- assert_eq ! ( deletes_for_referenced[ 0 ] . file_path, pos_delete. file_path( ) ) ;
855+ assert_eq ! (
856+ deletes_for_referenced[ 0 ] . file_path( ) ,
857+ pos_delete. file_path( )
858+ ) ;
856859
857860 assert ! (
858861 index
@@ -956,12 +959,12 @@ mod tests {
956959 } ;
957960
958961 let task: FileScanTaskDeleteFile = ( & ctx) . into ( ) ;
959- assert_eq ! ( task. file_type, DataContentType :: PositionDeletes ) ;
960- assert_eq ! ( task. content_offset, Some ( 4 ) ) ;
961- assert_eq ! ( task. content_size_in_bytes, Some ( 40 ) ) ;
962- assert_eq ! ( task. record_count, Some ( 3 ) ) ;
962+ assert_eq ! ( task. file_type( ) , DataContentType :: PositionDeletes ) ;
963+ assert_eq ! ( task. content_offset( ) , Some ( 4 ) ) ;
964+ assert_eq ! ( task. content_size_in_bytes( ) , Some ( 40 ) ) ;
965+ assert_eq ! ( task. record_count( ) , Some ( 3 ) ) ;
963966 assert_eq ! (
964- task. referenced_data_file. as_deref ( ) ,
967+ task. referenced_data_file( ) ,
965968 Some ( "s3://bucket/data/part-0.parquet" )
966969 ) ;
967970 }
@@ -992,7 +995,7 @@ mod tests {
992995 . get_deletes_for_data_file ( & data_file, Some ( 0 ) )
993996 . unwrap ( )
994997 . into_iter ( )
995- . map ( |f| f. file_path )
998+ . map ( |f| f. file_path ( ) . to_string ( ) )
996999 . collect ( ) ;
9971000
9981001 // Only the deletion vector applies; the partition-scoped position delete file, which
@@ -1107,7 +1110,7 @@ mod tests {
11071110 . get_deletes_for_data_file ( & data_file, Some ( 0 ) )
11081111 . unwrap ( )
11091112 . into_iter ( )
1110- . map ( |f| f. file_path )
1113+ . map ( |f| f. file_path ( ) . to_string ( ) )
11111114 . collect ( ) ;
11121115
11131116 // Only the deletion vector applies; the path-scoped position delete file, which would
@@ -1142,7 +1145,7 @@ mod tests {
11421145 . get_deletes_for_data_file ( & data_file, Some ( 0 ) )
11431146 . unwrap ( )
11441147 . into_iter ( )
1145- . map ( |f| f. file_path )
1148+ . map ( |f| f. file_path ( ) . to_string ( ) )
11461149 . collect ( ) ;
11471150 applied. sort ( ) ;
11481151
0 commit comments