You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "paleolimbot (via GitHub)" <gi...@apache.org> on 2023/05/24 16:54:50 UTC

[GitHub] [arrow-adbc] paleolimbot commented on pull request #702: feat(python/adbc_driver_manager): experiment with using PyCapsules

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: github-unsubscribe@arrow.apache.org

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