pitrou edited a comment on pull request #8287: URL: https://github.com/apache/arrow/pull/8287#issuecomment-701306159
In Rust, I see that `BufferData` is reference-counted in `Buffer`, so for _exporting_ it should be able to follow the same principles as C++. I would suggest you start with that: implement only exporting, start with primitive types. Exercise using Python tests to import the data (e.g. `Array._import_from_c`), and check lifetime handling. For importing, it seems `BufferData` may have to define a custom destructor function, or an optional external owner. I'm not a Rust developer, so I can't advise on that :-) ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org