Jefffrey commented on code in PR #12010:
URL: https://github.com/apache/arrow-rs/pull/12010#discussion_r4464263634
##########
arrow-array/src/ffi.rs:
##########
@@ -1778,6 +1786,74 @@ mod tests_from_ffi {
Ok(())
}
+ /// Offsets that a producer stores at an address not aligned for their
type must
+ /// import, as the C data interface only recommends alignment.
+ ///
+ /// <https://github.com/apache/arrow-rs/issues/7136>
+ #[test]
+ fn test_bytes_with_unaligned_offsets() -> Result<()> {
+ // The C layout of `FFI_ArrowArray`, filled in by hand as a C producer
would.
+ #[repr(C)]
+ struct RawArrowArray {
Review Comment:
are we handrolling this struct to better mimic an end to end representation
of the issue? or is it because creating the requisite misaligned data via
`FFI_ArrowArray` (via `ArrayData`) is not possible?
--
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]