askoa commented on code in PR #3534:
URL: https://github.com/apache/arrow-rs/pull/3534#discussion_r1071487266


##########
arrow-data/src/transform/mod.rs:
##########
@@ -473,6 +475,20 @@ impl<'a> MutableArrayData<'a> {
                     })
                     .collect::<Vec<_>>(),
             },
+            DataType::RunEndEncodedType(_, _) => {
+                let run_ends_child = arrays
+                    .iter()
+                    .map(|array| &array.child_data()[0])
+                    .collect::<Vec<_>>();
+                let value_child = arrays
+                    .iter()
+                    .map(|array| &array.child_data()[1])
+                    .collect::<Vec<_>>();
+                vec![
+                    MutableArrayData::new(run_ends_child, use_nulls, 
array_capacity),

Review Comment:
   ```suggestion
                       MutableArrayData::new(run_ends_child, false, 
array_capacity),
   ```
   
   run_ends cannot have nulls.



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