Skip to content
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

MapArray does not work with RecordBatchWriter (fix: update to arrow-rs 37) #1301

Closed
balbok0 opened this issue Apr 20, 2023 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@balbok0
Copy link
Contributor

balbok0 commented Apr 20, 2023

Environment

Delta-rs version: 0.9.0

Binding:

Environment:

  • Cloud provider: N/A
  • OS: Linux (Arch, Kernel 5.15.106)
  • Other: N/A

Bug

What happened: When writing MapArray to a parquet file following error happens

thread 'main' panicked at 'not implemented: Take not supported for data type Map(Field { name: "entries", data_type: Struct([Field { name: "keys", data_type: Utf8, nullable: false, dict_id: 0, dict_is_ordered: false, metadata: {} }, Field { name: "values", data_type: Binary, nullable: false, dict_id: 0, dict_is_ordered: false, metadata: {} }]), nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }, false)', /home/balbok/.cargo/registry/src/github.com-1ecc6299db9ec823/arrow-select-36.0.0/src/take.rs:211:14

What you expected to happen: Successful write

How to reproduce it: Take the record batch test from this PR and attempt to write it with RecordBatch.

More details: Fixed in arrow 37 on this PR by @wjones127. I took a stab on updating the repo to arrow 37 on this forked branch and confirmed that record batch writer works with MapArray. I'm new to Rust though, so probably not a production code.

@balbok0 balbok0 added the bug Something isn't working label Apr 20, 2023
@rtyler
Copy link
Member

rtyler commented Apr 20, 2023

This is a known issue, see: #1226

Unfortunately we're kind of stuck until Data Fusion upgrades to arrow 37 in their next release. The web of dependencies here is ... not ideal 😄

@balbok0
Copy link
Contributor Author

balbok0 commented Apr 21, 2023

Makes sense, thanks for the explanation, and sorry for the duplicate!

@balbok0 balbok0 closed this as completed Apr 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants