viirya commented on issue #40038: URL: https://github.com/apache/arrow/issues/40038#issuecomment-1941891837
> Er, weren't we talking about this? As you said, we already have it now. But for C Data Interface, as we discussed yesterday, it is not valid under C Data Interface. I think now we are going to send one value (zero) buffer instead of zero size buffer, isn't? > I don't see why the allocator would give NULL for an allocation of size 4 or 8... To clarify, we currently send a zero size buffer (i.e, `empty`) buffer through C Data Interface (not size 4 or 8) For the reason, why the allocator give NULL for an allocation of empty buffer, see my previous comment: https://github.com/apache/arrow/issues/40038#issuecomment-1940350746. In short, for the `empty` buffer allocated in `UnsafeAllocationManager`, which is a NULL pointer, because `MemoryUtil.UNSAFE.allocateMemory(0)` returns NULL pointer for 0 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]
