wjones127 commented on PR #5081: URL: https://github.com/apache/arrow-rs/pull/5081#issuecomment-1814788843
@tustvold I'm actually not sure how to satisfy the `test_can_cast_types` test. Right now `can_cast_types()` can validate the child types can be cast, but can't validate the lengths are of appropriate size. One option is to change the implementation so that if `safe` is `true`, then we truncate or fill nulls into the arrays to coerce them into the correct size. That brings issues though if the output field is not nullable. Are there other cases of types where `can_cast_types()` isn't a strong guarantee that the `cast()` function won't error? -- 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]
