felipecrv commented on issue #2526:
URL: https://github.com/apache/arrow-adbc/issues/2526#issuecomment-2661051639
> It would be nice to know which data type Rust is complaining about (are
there any data types that require an alignment >8 bytes anywhere in the spec?)
The integers coming from the Snowflake driver are actually `decimal128` and
`arrow-rs` uses `mem::align_of::<u128>()` to pick the `BufferSpec::FixedWidth {
alignment }` for the decimal 128 buffers [1]. That is 16 bytes and C `malloc`
only guarantees 8-byte alignment unless a `malloc` that takes alignment
arguments is used. That's really hard to guarantee from Go or C code.
[1] https://github.com/apache/arrow-rs/blob/main/arrow-data/src/data.rs#L1591
--
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]