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-unsubscr...@arrow.apache.org

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


Reply via email to