tustvold commented on issue #5067: URL: https://github.com/apache/arrow-rs/issues/5067#issuecomment-1807208658
The arrow-rs FFI interfaces expect to take ownership of the provided data. That is when the last reference within arrow is freed it should invoke release. If this is what the PyCapsule is providing, then it should just be a case of std::ptr::read to transfer the ownership. However, if this is not how ownership in PyCapsule works, in particular if the ownership of the PyCapsule needs to be transfered and not the underlying array, then a new FFI mechanism would be required. -- 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]
