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

Deduplicate reduce aggregations #3881

Merged

Conversation

frankmcsherry
Copy link
Contributor

@frankmcsherry frankmcsherry commented Aug 6, 2020

The aggregations in Reduce may contain duplicates, notably in the case that avg results in multiple counts of non-nullable columns, which yields several count(*) aggregates. This PR removes any duplicates and uses a projection to copy the column references around.


This change is Reviewable

Copy link
Member

@benesch benesch left a comment

Choose a reason for hiding this comment

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

Seems great to me! Thanks for fixing my bug, too!

@frankmcsherry frankmcsherry merged commit 660360b into MaterializeInc:main Aug 6, 2020
@frankmcsherry frankmcsherry deleted the deduplicate_reductions branch March 8, 2022 13:26
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.

None yet

2 participants