You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "Jefffrey (via GitHub)" <gi...@apache.org> on 2026/06/28 02:17:25 UTC
[I] casting list to 0-size fixedsizelist can cause incorrect output length [arrow-rs]
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: github-unsubscribe@arrow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] casting list to 0-size fixedsizelist can cause incorrect output length [arrow-rs]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb closed issue #10227: casting list to 0-size fixedsizelist can cause incorrect output length
URL: https://github.com/apache/arrow-rs/issues/10227
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org