Describe the bug
#[test]
fn test_cast_list_to_zero_size_fsl() {
let field = Arc::new(Field::new("a", DataType::Null, true));
let length = 2;
let expected = Arc::new(
FixedSizeListArray::try_new_with_length(
field.clone(),
0,
new_empty_array(&DataType::Null),
None,
2,
)
.unwrap(),
) as ArrayRef;
let list = Arc::new(ListArray::new(
field.clone(),
OffsetBuffer::from_repeated_length(0, length),
new_empty_array(&DataType::Null),
None,
));
let fsl = cast(list.as_ref(), expected.data_type()).unwrap();
assert_eq!(&expected, &fsl);
}
- this fails because output fixedsizelist has 0 length
To Reproduce
No response
Expected behavior
No response
Additional context
No response
Describe the bug
To Reproduce
No response
Expected behavior
No response
Additional context
No response