Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARROW-7975: [C++] Preserve intended buffer size by default when writi…
…ng to IPC format I stumbled into this tangentially. While padding to a minimum of an 8-byte multiple is a requirement of the binary protocol, including the padding in the metadata causes buffer sizes to be modified. In some cases, the intention of the writer is for the receiver to receive padded buffers, but including the padding unconditionally leaves no possibility of recovering the buffer size prior to producing the IPC message. I think it would be better to give the writer the option of what to do. I opened ARROW-7976 about adding an option to make this behavior configurable. Another possibility of course is to implement an option and have "include padding" turned on by default To be clear in case there is concern, this change has no backward or forward compatibility implications. Closes #6513 from wesm/ARROW-7975 and squashes the following commits: ec8e37b <Wes McKinney> Add unit test to check that buffer sizes pass through IPC unmodified ac8d8d9 <Wes McKinney> Do not include padding in Buffer IPC metadata Authored-by: Wes McKinney <wesm+git@apache.org> Signed-off-by: Wes McKinney <wesm+git@apache.org>
- Loading branch information