Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid struct arrays in IPC data causes panic during read #6416

Closed
alexwilcoxson-rel opened this issue Sep 18, 2024 · 1 comment · Fixed by #6417
Closed

Invalid struct arrays in IPC data causes panic during read #6416

alexwilcoxson-rel opened this issue Sep 18, 2024 · 1 comment · Fixed by #6417
Labels
arrow Changes to the arrow crate bug

Comments

@alexwilcoxson-rel
Copy link
Contributor

Describe the bug
We're using Arrow Flight with a dotnet client. One of our client applications accidentally was sending StructArray's with different length child arrays. Not sure why the dotnet side batch building didn't catch it, but on the flight decode in IPC there is a panic. This causes the request task to die and the response to the flight client to be not helpful.

thread 'general' panicked at /.../arrow-array-52.2.0/src/array/struct_array.rs:90:46:
called `Result::unwrap()` on an `Err` value: InvalidArgumentError("Incorrect array length for StructArray field \"field\", expected 2 got 1")
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
libunwind: stepWithCompactEncoding - invalid compact unwind encoding

To Reproduce
Create IPC data with different length child arrays in a struct. Attempt to read that data.

Expected behavior
Error is returned without panicing.

Additional context
n/a

@alamb
Copy link
Contributor

alamb commented Oct 2, 2024

label_issue.py automatically added labels {'arrow'} from #6417

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arrow Changes to the arrow crate bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants