Skip to content

Prevent removal of aggregation nodes when grouping sets are present#22224

Merged
vivek-bharathan merged 1 commit intoprestodb:masterfrom
vivek-bharathan:constraintsbug
Mar 19, 2024
Merged

Prevent removal of aggregation nodes when grouping sets are present#22224
vivek-bharathan merged 1 commit intoprestodb:masterfrom
vivek-bharathan:constraintsbug

Conversation

@vivek-bharathan
Copy link
Contributor

Description

Fixes #22171

If release note is NOT required, use:

== NO RELEASE NOTE ==

@vivek-bharathan vivek-bharathan marked this pull request as ready for review March 16, 2024 00:28
@vivek-bharathan vivek-bharathan requested a review from a team as a code owner March 16, 2024 00:28
exploitConstraints,
anyTree(
node(AggregationNode.class,
node(ProjectNode.class,
Copy link
Contributor

Choose a reason for hiding this comment

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

nit : The Project node isn't strictly necessary. It's only added because optimizer_hash_generation is on

Copy link
Contributor

@feilong-liu feilong-liu left a comment

Choose a reason for hiding this comment

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

LG.
For the unit tests, I think they need to be put in a separate test class corresponding to the optimizer itself.

@tdcmeehan tdcmeehan self-assigned this Mar 18, 2024
ZacBlanco
ZacBlanco previously approved these changes Mar 19, 2024
Copy link
Contributor

@ZacBlanco ZacBlanco left a comment

Choose a reason for hiding this comment

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

Agree with Anant on moving the tests. Otherwise LGTM

@vivek-bharathan vivek-bharathan merged commit f730f26 into prestodb:master Mar 19, 2024
@vivek-bharathan vivek-bharathan deleted the constraintsbug branch March 19, 2024 20:05
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.

5 participants