multimeric opened a new issue #12102:
URL: https://github.com/apache/arrow/issues/12102


   Hi. In the [extendr](https://github.com/extendr/extendr/) project (R 
bindings for Rust) we're looking into how to integrate 
[Polars](https://github.com/pola-rs/polars) (a prominent Rust Data Frame 
library that uses Arrow arrays internally) with R. Since Polars already stores 
arrays in the arrow format, I was thinking that it should be possible to just 
[return a pointer from Rust directly to 
R](https://pola-rs.github.io/polars/polars/series/struct.Series.html#method.to_arrow),
 and then maybe set the class attribute, and then R's `arrow` should provide 
implementations of all the standard R generic functions a user might want. Does 
this approach make sense? Are there any other tricks I should know, for example 
attributes that R's `arrow` expects to be set, or perhaps you use a wrapper 
struct around the arrow array that we would have to implement?
   
   We're also interested in the reverse integration, namely passing data 
created in R back into Polars, but I might ask about that later on.
   
   Some discussion about this integration can be found here: 
https://github.com/extendr/extendr/issues/331.


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