viirya commented on issue #40038:
URL: https://github.com/apache/arrow/issues/40038#issuecomment-1941915262

   Let me try to summarize the issue:
   
   1. Java Arrow uses empty buffer internally for offset buffer (valid, for 
historical reason). For C Data Interface, it is not valid. We are going to send 
one value (zero) buffer at the moment.
   2. Currently the empty buffer sent by Java Arrow would be NULL pointer if 
unsafe allocator is used. It is because UNSAFE `allocateMemory` API returns a 
NULL pointer for zero bytes allocation.
   
   


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