-
I am a beginner with Rust but have used Arrow in other languages. Please feel free to refer me to documentation that I may have missed. I am reading "the book" but it can be heavy going at times. If I have a file "data/foo.arrow". How do I open the file with, I assume, an My attempts look like
but I don't know what the type of the second argument Of course it is possible that I have completely missed the point and am looking in the wrong place of the documentation entirely. A small snippet of code that I can use as a model would be much appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
In the end I read the documentation for the arrow2 crate which did show an example of using |
Beta Was this translation helpful? Give feedback.
-
I was wrong about the structure |
Beta Was this translation helpful? Give feedback.
-
It is a list of column indices to project, so if you had columns a,b,c then a projection of If you want all the columns, just pass in |
Beta Was this translation helpful? Give feedback.
In the end I read the documentation for the arrow2 crate which did show an example of using
arrow2
to do what I wanted. And, for anyone who encounters this discussion in the future, as I understand it anOption<Vec<usize>>
would be aVec
containing values likeSome(1u64)
orNone
. I found this confusing coming from the Julia programming language where the type would be written likeVector{Union{UInt64,Missing}}
, which reverses the order of theOption
concept and theVec
.