pitrou opened a new issue, #47918:
URL: https://github.com/apache/arrow/issues/47918

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   The Flatbuffers spec 
[stipulates](https://github.com/apache/arrow/blob/8dd9eba99a69dbdf1d110cebf0bd349ee3ac7eda/format/Message.fbs#L59-L65)
 that every compressed buffer should be prefixed with the 8-byte uncompressed 
length.
   
   However, in the C++ IPC writer, we actually write an empty compressed buffer 
(without length prefix) if the uncompressed data is empty:
   
https://github.com/apache/arrow/blob/8dd9eba99a69dbdf1d110cebf0bd349ee3ac7eda/cpp/src/arrow/ipc/writer.cc#L243-L246
   
   and, of course, we also handle this case in the C++ IPC reader:
   
https://github.com/apache/arrow/blob/8dd9eba99a69dbdf1d110cebf0bd349ee3ac7eda/cpp/src/arrow/ipc/reader.cc#L513-L515
   
   We should make it clear in the Flatbuffers spec that this case is allowed.
   
   ### Component(s)
   
   Format


-- 
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]

Reply via email to