paleolimbot commented on PR #702:
URL: https://github.com/apache/arrow-adbc/pull/702#issuecomment-1561593694

   @jorisvandenbossche I didn't see your comment before writing that!
   
   I (experimentally) handle that in the R bindings by returning a stream 
wrapper and moving the statement to a pointer at a new address (i.e., 
invalidating any previous R objects that had been pointing to that). There is a 
function `nanoarrow_pointer_export()` that very specifically exports a 
schema/array/stream with a self-contained lifecycle (such that it can be passed 
anywhere safely). Before that happens, dependencies are managed via references 
(presumably that's what the capsule's Context is doing but that doesn't seem to 
be documented?).


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