vegarsti commented on code in PR #8589:
URL: https://github.com/apache/arrow-rs/pull/8589#discussion_r2434800205
##########
arrow-cast/src/cast/mod.rs:
##########
@@ -789,6 +793,41 @@ pub fn cast_with_options(
| Map(_, _)
| Dictionary(_, _),
) => Ok(new_null_array(to_type, array.len())),
+ (RunEndEncoded(index_type, _), _) => {
+ let mut cast_options = cast_options.clone();
+ cast_options.safe = false;
Review Comment:
The description in the original PR
https://github.com/apache/arrow-rs/pull/7713 has the reasoning under "Run-End
Encoded Array Casting: Tradeoffs and Implementation". I found that section a
bit wordy, but this line you commented on definitely needs a comment.
--
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]