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

[5.0.1] Query: Pushdown into subquery when applying group by over a group by #23297

Merged
merged 1 commit into from
Nov 18, 2020

Conversation

smitpatel
Copy link
Member

@smitpatel smitpatel commented Nov 12, 2020

Resolves #23265

Everyone wants their own set of conditions for pushdown. ¯\(ツ)

Description

When applying GroupBy over result of another GroupBy-aggregate, we missed doing a push-down of the subquery causing incorrect results. This is a regression from 3.1 in a reasonably common query pattern.

Customer Impact

Incorrect results which can cause data corruption in customer apps.

How found

Customer reported on 5.0.

Test coverage

Added test for affected scenario.

Regression?

Yes, this worked in 3.1.

Risk

Low. This brings back same set of condition which were in place for push-down in 3.1

@smitpatel smitpatel requested a review from a team November 12, 2020 22:40
@smitpatel smitpatel changed the title Query: Pushdown into subquery when applying group by over a group by [5.0.1] Query: Pushdown into subquery when applying group by over a group by Nov 13, 2020
@ajcvickers
Copy link
Member

Approved by Tactics for 5.0.1.

Resolves #23265

Everyone wants their own set of conditions for pushdown. ¯\_(ツ)_/¯
@smitpatel smitpatel merged commit 94667b8 into release/5.0 Nov 18, 2020
@smitpatel smitpatel deleted the smit/groupbyagroupby branch November 18, 2020 00:14
@ajcvickers ajcvickers removed this from the 5.0.1 milestone Dec 11, 2020
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.

3 participants