lwhite1 commented on PR #13248:
URL: https://github.com/apache/arrow/pull/13248#issuecomment-1215854095

   > C Data Interface allocations need to get associated with an actual 
allocator, even if the allocator isn't actually doing the allocation.
   
   I guess this is reasonable given where we are, but associating with an 
allocator that isn't doing the allocation seems likely to confuse future 
developers if the memory appears to be managed in the Java code but isn't. 
   
   > Ok, thanks. In that case, it seems like we need the ability to associate 
the C Data reference manager with a Java allocator, and update APIs to require 
a BufferAllocator to associate with. I don't think that'll require breaking 
changes in the core APIs, but it would probably mean updating/deprecating APIs 
in the C Data interface.
   
   Since the API already has a bufferAllocator argument (that is ignored), I'm 
not sure what change you're suggesting unless it's simply to annotate the 
argument as non-nullable. If there was no bufferAllocator argument it would be 
simple enough to deprecate the current method and add a new one. 
   
   


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