viirya commented on PR #2883: URL: https://github.com/apache/arrow-rs/pull/2883#issuecomment-1279884064
> The alignment of the entire memory allocation is irrelevant, we only care that that the buffers within it are correctly aligned. `align_offset` actually checks the entire memory allocation. That said we allocate a memory allocation in IPC reader for all buffers data. Then we slice it for offset/length for each buffers. When we construct PrimitiveArray from one (sliced) buffer, `align_offset` checks if the entire memory allocation aligns with type `T`. And it is obviously not guaranteed to be. -- 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]
