-
Notifications
You must be signed in to change notification settings - Fork 809
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
Support take on MapArray #3875
Comments
There is an example using MapArrayBuilder - https://github.com/apache/arrow-rs/blob/master/parquet/src/arrow/array_reader/map_array.rs#L146 And an example using the JSON reader - https://github.com/apache/arrow-rs/blob/master/arrow-json/src/raw/mod.rs#L607 The documentation could definitely be improved for handling this particular type
This looks like a failure in |
@tustvold thank you for the suggestions. Investigating the |
@tustvold as I am getting deeper into this problem, I'm curious if there's a reason why |
No reason that I'm aware of, MapArray support simply hasn't been added to many of the kernels yet |
Which part is this question about
I have been struggling to make
RecordBatch
objects with what I believe are maps. I cannot seem to create the right icantation to write a record which includes a map.Describe your question
I have tried variables of
MapBuilder
and hand-craftingMapArray
s but today I broke down and just tried to write a record with a JSON decoded object to parquet, for example:The
batch
then looks like:Which when I attempt to write using
RecordBatchWriter
results in a panic:I would appreciate any examples whether using JSON or raw constructed
RecordBatch
objects to get records with maps written properly to parquet 😦Additional context
This is with arrow 33 for what it's worth.
The text was updated successfully, but these errors were encountered: