You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "alexwilcoxson-rel (via GitHub)" <gi...@apache.org> on 2024/09/18 19:54:42 UTC

[I] Invalid struct arrays in IPC data causes panic during read [arrow-rs]

alexwilcoxson-rel opened a new issue, #6416:
URL: https://github.com/apache/arrow-rs/issues/6416

   **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


-- 
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] Invalid struct arrays in IPC data causes panic during read [arrow-rs]

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb closed issue #6416: Invalid struct arrays in IPC data causes panic during read
URL: https://github.com/apache/arrow-rs/issues/6416


-- 
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