tustvold commented on issue #1035:
URL: 
https://github.com/apache/datafusion-comet/issues/1035#issuecomment-2438232880

   >  I believe JVM doesn't care about this Allocation parameter
   
   Indeed, and that is the problem :sweat_smile: 
   
   So for example when receiving data over the C Data interface, e.g. for 
interop with arrow-cpp or pyarrow, we construct an FFI_ArrowArray, which then 
gets passed as the `Allocation` parameter - 
https://github.com/apache/arrow-rs/blob/master/arrow-array/src/ffi.rs#L239. 
This ensures that the memory is not freed or mutated by the external process 
until we are done with 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: github-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to