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

Panic when writing empty List inside a Struct #823

Closed
hohav opened this issue Oct 10, 2021 · 1 comment
Closed

Panic when writing empty List inside a Struct #823

hohav opened this issue Oct 10, 2021 · 1 comment
Labels

Comments

@hohav
Copy link

hohav commented Oct 10, 2021

Describe the bug
I get a panic when trying to write a parquet file containing a StructArray with a ListArray inside it, when there's at least one empty list.

To Reproduce
cargo run this: https://github.com/hohav/arrow-parquet-list-test/blob/v4/src/main.rs

Expected behavior
A parquet file is written.

Actual behavior

thread 'main' panicked at 'assertion failed: `(left == right)`
  left: `1`,
 right: `0`', ~/.cargo/registry/src/github.jparrowsec.cn-1ecc6299db9ec823/parquet-5.5.0/src/util/bit_util.rs:347:9

Additional context
Possibly related:

@hohav hohav added the bug label Oct 10, 2021
@alamb
Copy link
Contributor

alamb commented Jan 13, 2022

Here is a PR with a proposed fix: #1166

@hohav can you possibly check to see if it fixes your usecase?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants