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

fix: panic when casting ListArray to FixedSizeList #5643

Merged
merged 1 commit into from
Apr 15, 2024

Conversation

jonahgao
Copy link
Member

Which issue does this PR close?

Closes #5642.

Rationale for this change

When there are null lists in the source array, it may be necessary to write NULLs into the MutableArrayData during the casting process. Therefore, when calling MutableArrayData::new(), use_nulls should be set to true.

What changes are included in this PR?

Fix panic.

Are there any user-facing changes?

No

@github-actions github-actions bot added the arrow Changes to the arrow crate label Apr 14, 2024
@tustvold tustvold merged commit fee6921 into apache:master Apr 15, 2024
25 checks passed
@jonahgao jonahgao deleted the fix_panic branch April 15, 2024 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arrow Changes to the arrow crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

panic when casting ListArray to FixedSizeList
2 participants