viirya commented on code in PR #1602:
URL: https://github.com/apache/arrow-rs/pull/1602#discussion_r854360680
##########
arrow/src/array/array_list.rs:
##########
@@ -524,6 +516,32 @@ mod tests {
assert_eq!(list_array, another)
}
+ #[test]
+ fn test_empty_list_array() {
+ // Construct an empty value array
+ let value_data = ArrayData::builder(DataType::Int32)
+ .len(0)
+ .add_buffer(Buffer::from_iter(std::iter::empty::<i32>()))
Review Comment:
Should the offsets for an empty ListArray to be something like [0, 0]?
--
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]