-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
Description
Describe the bug
GenericListViewArray::new_null return empty arrays regardless of length.
To Reproduce
new_null constructs an array with empty offsets and sizes results in empty array.
arrow-rs/arrow-array/src/array/list_view_array.rs
Lines 223 to 232 in 49ed6ef
| pub fn new_null(field: FieldRef, len: usize) -> Self { | |
| let values = new_empty_array(field.data_type()); | |
| Self { | |
| data_type: Self::DATA_TYPE_CONSTRUCTOR(field), | |
| nulls: Some(NullBuffer::new_null(len)), | |
| value_offsets: ScalarBuffer::from(vec![]), | |
| value_sizes: ScalarBuffer::from(vec![]), | |
| values, | |
| } | |
| } |
Expected behavior
The array length equals the len argument.
Additional context