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

[6.0.2] Query: Avoid stackoverflow in lifting group by aggregate term #27131

Merged
merged 1 commit into from
Jan 10, 2022

Conversation

smitpatel
Copy link
Member

Correlate the scalar subquery with parent SelectExpression

Resolves #27094

Description
Certain queries with group by aggregate on multiple level generates stackoverflow exception.

Customer impact
Program crashes with stackoverflow exception.

How found
Customer reported on 6.0.1

Regression
Yes. Query used to work in 5.0 version.

Testing
Added test for customer scenario and similar variations.

Risk
Low risk. Also added quirk mode.

@smitpatel smitpatel requested a review from a team January 6, 2022 22:00
@AndriySvyryd AndriySvyryd added this to the 6.0.x milestone Jan 6, 2022
@AndriySvyryd AndriySvyryd modified the milestones: 6.0.x, 6.0.2 Jan 7, 2022
Base automatically changed from smit/snowisbad to release/6.0 January 10, 2022 20:06
Correlate the scalar subquery with parent SelectExpression

Resolves #27094
@smitpatel smitpatel merged commit 22a1094 into release/6.0 Jan 10, 2022
@smitpatel smitpatel deleted the smit/brightandsunny branch January 10, 2022 21:40
@smitpatel smitpatel removed this from the 6.0.2 milestone Jan 10, 2022
@ajcvickers ajcvickers changed the title [release/6.0] Query: Avoid stackoverflow in lifting group by aggregate term [6.0.2] Query: Avoid stackoverflow in lifting group by aggregate term Jan 13, 2022
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