-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use nanoarrow instead of arrow #1
Comments
Probably related: https://arrow.apache.org/docs/format/CDataInterface/PyCapsuleInterface.html
|
Yes, that's very recent (just being implemented!). The idea is that libraries producing an array only have to produce something that implements In R we don't have the ability to do |
Ref: pola-rs/r-polars#5 |
It is implemented for:
It is less clear how to handle Meaning the arrow class objects |
To/From thing is still new to me, but if I were in Rust and I wanted an arrow DataType, Field, or Schema from arbitrary user SEXP input, I'd want to call That will get you all Arrow objects for free (because |
To my knowledge there is no concept of a Another question if you feel so kind: getting an arrow array using Using nanoarrow, i'm not so sure how to move the single pointer of the array into schema + array (or maybe that just doesnt happen?) |
Recently, the polars package has started using the R! macro to execute as_* functions on the R side and then load Arrow objects on the Rust side. |
I think
Good to know! It's a bit of a bummer...the ability to leave chunks as they are is often helpful (but not something you have to deal with now 🙂 ) |
Oh, and for an array you can get the schema from |
Yeah, this did the trick! It turns out that the |
Jinx |
@eitsupi If i understand correctly, that's exactly what I'm aiming for here! There should be no matching necessary! |
@eitsupi aside: closing this issue since it now uses nanoarrow in Rust -> R but still allowing arrow -> Rust as well as nanoarrow -> Rust |
Looks great! |
@paleolimbot
The text was updated successfully, but these errors were encountered: