Jefffrey opened a new issue, #10914:
URL: https://github.com/apache/arrow-rs/issues/10914
### Describe the bug
got codex to run some correctness checks against take kernel, it surfaced
this bug:
```rust
// arrow-select/src/take.rs
#[test]
fn test_take_zero_sized_fixed_size_list() {
let input = FixedSizeListArray::try_new_with_length(
Field::new_list_field(DataType::Int32, true).into(),
0,
Arc::new(Int32Array::new_null(0)),
None,
3,
)
.unwrap();
let indices = UInt32Array::from(vec![2, 0]);
let result = take(&input, &indices, None).unwrap();
assert_eq!(result.len(), 2);
}
```
on main this test fails:
```sh
---- take::tests::test_take_zero_sized_fixed_size_list stdout ----
thread 'take::tests::test_take_zero_sized_fixed_size_list' (35753445)
panicked at arrow-select/src/take.rs:3232:9:
assertion `left == right` failed
left: 0
right: 2
```
it should succeed
### 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]