pitrou commented on PR #48541:
URL: https://github.com/apache/arrow/pull/48541#issuecomment-3664552632

   To answer the questions:
   
   1. I don't think the 0-length exception was actually discussed. It was 
briefly mentioned in @wesm 's [original 
proposal](https://lists.apache.org/thread/45krtd4k4td81s3jynkjc7dh2jhbym9f) 
("Compress each non-zero-length constituent Buffer ..."), but that didn't 
trigger any particular reaction.
   2. I've just checked: the compressed streams in 
https://github.com/apache/arrow-testing/tree/master/data/arrow-ipc-stream/integration/2.0.0-compression
 (in particular 
[generated_lz4.stream](https://github.com/apache/arrow-testing/blob/master/data/arrow-ipc-stream/integration/2.0.0-compression/generated_lz4.stream)
 and 
[generated_zstd.stream](https://github.com/apache/arrow-testing/blob/master/data/arrow-ipc-stream/integration/2.0.0-compression/generated_zstd.stream))
 have a 0-length buffer at index 0 of their record batches (it's the null 
bitmap of the first column, which doesn't have any nulls)
   
   So, such IPC streams have already been emitted by the C++ IPC writer, and 
quite commonly so it seems (a non-null batch column is sufficient, though a 
zero-sized batch would also trigger it).


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