Skip to content

Fix distinct aggregation input filtering when input mask has nulls#16747

Merged
mbasmanova merged 1 commit intoprestodb:masterfrom
pettyjamesm:distinct-accumulator-null-mask
Sep 17, 2021
Merged

Fix distinct aggregation input filtering when input mask has nulls#16747
mbasmanova merged 1 commit intoprestodb:masterfrom
pettyjamesm:distinct-accumulator-null-mask

Conversation

@pettyjamesm
Copy link
Copy Markdown
Contributor

Similar to #13852, distinct accumulators were not checking for nulls in their input masks, which might allow null positions to pass the filter check incorrectly.

== RELEASE NOTES ==

General Changes
* Fix a potential correctness bug in distinct aggregations when combined with a filtering mask containing null values

@aweisberg aweisberg changed the title Fix distinct aggretation input filtering when input mask has nulls Fix distinct aggregation input filtering when input mask has nulls Sep 16, 2021
Similar to prestodb#13852, distinct
accumulator filtering checks were not checking for nulls which
might allow null positions to pass the filter check incorrectly
@pettyjamesm pettyjamesm force-pushed the distinct-accumulator-null-mask branch from 7ee9c5b to 3d064db Compare September 16, 2021 17:25
Copy link
Copy Markdown
Contributor

@mbasmanova mbasmanova left a comment

Choose a reason for hiding this comment

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

Thank you, James.

@mbasmanova mbasmanova merged commit 70a81bc into prestodb:master Sep 17, 2021
@pettyjamesm pettyjamesm deleted the distinct-accumulator-null-mask branch September 17, 2021 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants