File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -476,13 +476,12 @@ impl PartnerAccessor<ArrayRef> for ArrowArrayAccessor {
476
476
. fields ( )
477
477
. iter ( )
478
478
. position ( |arrow_field| {
479
- get_field_id ( arrow_field) . map_or ( false , |id| id == field. id )
479
+ get_field_id ( arrow_field) . is_ok_and ( |id| id == field. id )
480
480
|| self
481
- . arrow_schema
482
- . as_ref ( )
483
- . and_then ( |schema| schema. field_with_name ( & field. name ) . ok ( ) )
484
- . and_then ( |field_from_schema| get_field_id ( field_from_schema) . ok ( ) )
485
- . map_or ( false , |id| id == field. id )
481
+ . arrow_schema
482
+ . as_ref ( )
483
+ . and_then ( |schema| schema. field_with_name ( & field. name ) . ok ( ) )
484
+ . and_then ( |field_from_schema| get_field_id ( field_from_schema) . ok ( ) ) == Some ( field. id )
486
485
} )
487
486
. ok_or_else ( || {
488
487
Error :: new (
You can’t perform that action at this time.
0 commit comments