You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/01/09 16:47:36 UTC
[GitHub] [arrow] ritchie46 commented on issue #12102: How to pass an in-memory arrow object from Rust into R
ritchie46 commented on issue #12102:
URL: https://github.com/apache/arrow/issues/12102#issuecomment-1008334083
If you are also using polars/arrow logical types (`Categorical`, `Datetime`, `Date`, `Duration`, or `Time`) you must ensure that the internal chunks of `Series` are coerced to their logical arrow type. This is done by calling [Series::to_arrow()](https://github.com/pola-rs/polars/blob/8f9010cf51e94b188002f7573de59ca94601247a/polars/polars-core/src/series/into.rs#L14).
From there its indeed arrow FFI just like @jorgecarleitao said.
If you need some inspiration here are the relevant functions for FFI with python we use in polars: https://github.com/pola-rs/polars/tree/master/py-polars/src/arrow_interop
Good luck!
--
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