klion26 commented on PR #9169: URL: https://github.com/apache/arrow-rs/pull/9169#issuecomment-3767851541
Currently, `cast/cast_with_option` supports different types of transformations, and lossy transformations are performed regardless of whether `safe` is true or false (e.g., 3.1f64 -> 3i32, 864000003005(TimeUnit::Milli) -> 864000003(TimeUnit::Second), etc.). Considering that this logic has been in place since its introduction in 2019, modifying it would result in a significant behavior change. Perhaps we should leave it as is and reuse the `cast` logic in `variant_get`. -- 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]
