rtpsw commented on issue #35498: URL: https://github.com/apache/arrow/issues/35498#issuecomment-1541528033
> I guess IPC will generate non-aligned, like 1byte in Int32Array, which would cause undefined behavior and type punning. Right, this is basically what happened. > But here it doesn't need to force subslice alignment? I don't know if no alignment enforcement would be OK, but it sounds like a smaller alignment would do. Perhaps a good quick fix is to change `ipc::kArrowAlignment` in [the code](https://github.com/apache/arrow/issues/35498#issuecomment-1539766664) to the byte size of the value's type. My understanding is that [numpy ensures this alignment condition](https://numpy.org/devdocs/dev/alignment.html#). -- 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]
