ApacheWang commented on PR #12533:
URL: https://github.com/apache/arrow-rs/pull/12533#issuecomment-7392282786

   Good catch, thanks for reproducing that case, @Ap-95671! Updated in 
`f6c93c2`:
   
   - Kept the direct `cast_with_options` + `apply_null_mask` fast path for 
`safe = true`, and fall back to the `filter` + `cast_with_options` + `take` 
helper when `cast_with_options` returns an error on a different target type 
(such as an invalid masked child inside a non-nullable `Struct` field).
   - Added regression tests covering `FixedSizeList<Struct<number: Utf8 not 
null>> -> Struct<number: Int32 not null>` with masked invalid rows (both `safe 
= true` and `safe = false`), all-null masked invalid rows, and verifying that 
an invalid non-nullable field in a valid row still errors.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to