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

GH-3172: Do not drop blocks with some null values if DictionaryFilter is applied for UserDefinedPredicate which keeps null values #3173

Merged
merged 3 commits into from
Mar 13, 2025

Conversation

ebartkus
Copy link
Contributor

@ebartkus ebartkus commented Mar 12, 2025

Rationale for this change

Fix for #3172

What changes are included in this PR?

Adding an explicit check for the existence of null values in the block if 'UserDefinedPredicate' accepts nulls. If null values exist and the predicate accepts nulls, the block cannot be dropped.

Are these changes tested?

Yes, a new test was created.

Are there any user-facing changes?

No.

Closes #3172

… `UserDefinedPredicate` which keeps null values
@wgtmac
Copy link
Member

wgtmac commented Mar 13, 2025

Thanks for the fix! I think it looks good.

cc @gszadovszky

@gszadovszky
Copy link
Contributor

@ebartkus, could you format your code? That's why the build is failing.
Otherwise, it looks good to me.

This is an actual bug that may cause data loss. @wgtmac, we might want to backport this, even if not actually fire maintenance releases out of it.

@ebartkus
Copy link
Contributor Author

Fixed formatting.

Copy link
Contributor

@gszadovszky gszadovszky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot, @ebartkus

@wgtmac wgtmac changed the title GH-3172: do not drop blocks with some null values if DictionaryFilter is applied for UserDefinedPredicate which keeps null values GH-3172: Do not drop blocks with some null values if DictionaryFilter is applied for UserDefinedPredicate which keeps null values Mar 13, 2025
@wgtmac wgtmac merged commit b6d54cc into apache:master Mar 13, 2025
7 checks passed
wgtmac pushed a commit that referenced this pull request Mar 13, 2025
…r` is applied for `UserDefinedPredicate` which keeps null values (#3173)
@wgtmac
Copy link
Member

wgtmac commented Mar 13, 2025

Thanks @ebartkus and @gszadovszky! I've backported it: 9d6e19f

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

Successfully merging this pull request may close these issues.

DictionaryFilter drops blocks containing some null values even if UserDefinedPredicate "keeps" null values
3 participants