alamb commented on code in PR #7366:
URL: https://github.com/apache/arrow-rs/pull/7366#discussion_r2027327023


##########
arrow-array/src/array/struct_array.rs:
##########
@@ -523,6 +547,55 @@ mod tests {
         assert_eq!(0, struct_array.offset());
     }
 
+    #[test]
+    fn test_struct_array_from_data_with_offset_and_length() {
+        let int_arr = Int32Array::from(vec![1, 2, 3, 4, 5]);
+        let int_field = Field::new("x", DataType::Int32, false);
+        let struct_nulls = NullBuffer::new(BooleanBuffer::from(vec![true, 
true, false]));

Review Comment:
   I made a PR to try and clarify the comments: 
   - https://github.com/apache/arrow-rs/pull/7385



-- 
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: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to