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.
|
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
Describe the bug
GenericListViewArray::new_nullreturn empty arrays regardless of length.To Reproduce
new_nullconstructs an array with emptyoffsetsandsizesresults in empty array.arrow-rs/arrow-array/src/array/list_view_array.rs
Lines 223 to 232 in 49ed6ef
Expected behavior
The array length equals the
lenargument.Additional context