Skip to content

Fix validation logic in StructArray::try_new to account for array.logical_nulls() returning Some() and null_count == 0 #7436

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

phillipleblanc
Copy link
Contributor

Which issue does this PR close?

Rationale for this change

Fixes the validation logic in StructArray::try_new to not error if there aren't any unmasked nulls, but a.logical_nulls() returns Some

What changes are included in this PR?

A single line change to check for null_count() on the NullBuffer before comparing against the parent nulls.

Are there any user-facing changes?

No

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
1 participant