alexanderbianchi commented on code in PR #7713:
URL: https://github.com/apache/arrow-rs/pull/7713#discussion_r2163991310


##########
arrow-cast/src/cast/mod.rs:
##########
@@ -745,14 +745,17 @@ pub fn cast_with_options(
             | Map(_, _)
             | Dictionary(_, _),
         ) => Ok(new_null_array(to_type, array.len())),
-        (RunEndEncoded(index_type, _), _) => match index_type.data_type() {
-            Int16 => run_end_encoded_cast::<Int16Type>(array, to_type, 
cast_options),
-            Int32 => run_end_encoded_cast::<Int32Type>(array, to_type, 
cast_options),
-            Int64 => run_end_encoded_cast::<Int64Type>(array, to_type, 
cast_options),
+        (RunEndEncoded(index_type, _), _) => {
+            let mut new_cast_options = cast_options.clone();

Review Comment:
   i don't think we want to override the safe flag here.



-- 
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