You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[R] Pass various wrapped Arrow objects created in Python into R with zero copy via reticulate #20056
A user may wish to use some functionality available only in pyarrow using reticulate; it would be useful to be able to construct an R wrapper object to the C++ object inside the corresponding Python type, e.g. pyarrow.Table.
This probably will require some new functions to return the memory address of the shared_ptr/unique_ptr inside the Cython types so that a function on the R side can copy the smart pointer and create the corresponding R wrapper type
Then pyobj is an external pointer to some pyObject I suppose, we would need to figure out how to go from this to the underlying shared_ptr or unique_ptr
Activity
asfimport commentedon Nov 10, 2018
Romain Francois / @romainfrancois:
Small example to get started:
Then
pyobjis an external pointer to some pyObject I suppose, we would need to figure out how to go from this to the underlying shared_ptr or unique_ptrasfimport commentedon Nov 11, 2018
Wes McKinney / @wesm:
Methods would need to be added to the Cython extension types to give the memory address of the smart pointer object they contain
asfimport commentedon Oct 8, 2019
Wes McKinney / @wesm:
@pitrou seems like this is a potential case for the C API
asfimport commentedon Oct 8, 2019
Neal Richardson / @nealrichardson:
See also ARROW-5956 for possibly relevant discussion
asfimport commentedon Oct 23, 2019
Neal Richardson / @nealrichardson:
pitrou#5 is our proof-of-concept using the C API. Once the protocol is approved we can move ahead with it.