Jefffrey opened a new issue, #10227:
URL: https://github.com/apache/arrow-rs/issues/10227
### Describe the bug
```rust
#[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_
--
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]