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: Fix is_not_null for Struct columns #13921

Merged
merged 3 commits into from
Jan 23, 2024
Merged

fix: Fix is_not_null for Struct columns #13921

merged 3 commits into from
Jan 23, 2024

Conversation

stinodego
Copy link
Member

@stinodego stinodego commented Jan 23, 2024

Closes #9443

A struct field is null if ALL fields are null.
A struct field is NOT null if ANY of its fields are NOT null.

A simple one-line fix, with a bunch of tests.

@stinodego stinodego changed the title Fix struct is not null fix: Fix is_not_null for Struct columns Jan 23, 2024
@github-actions github-actions bot added fix Bug fix python Related to Python Polars rust Related to Rust Polars labels Jan 23, 2024
@stinodego stinodego marked this pull request as ready for review January 23, 2024 08:41
@ritchie46 ritchie46 merged commit 83f7b16 into main Jan 23, 2024
26 checks passed
@ritchie46 ritchie46 deleted the fix-struct-not-null branch January 23, 2024 09:04
r-brink pushed a commit to r-brink/polars that referenced this pull request Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Bug fix python Related to Python Polars rust Related to Rust Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Struct is_null, is_not_null and drop_nulls inconsistent behavior
2 participants