Skip to content

Add valid Distinct case for aggregation - #11814

Merged
alamb merged 1 commit into
apache:mainfrom
synnada-ai:feature/eliminate-aggregate-test
Aug 5, 2024
Merged

Add valid Distinct case for aggregation#11814
alamb merged 1 commit into
apache:mainfrom
synnada-ai:feature/eliminate-aggregate-test

Conversation

@mertak-synnada

Copy link
Copy Markdown

Which issue does this PR close?

Closes #.

Rationale for this change

This change is for satisfying the related conversation: #11781 (comment)

What changes are included in this PR?

A valid test case for distinct and group-by usage

Are these changes tested?

Yes

Are there any user-facing changes?

No

@github-actionsgithub-actionsBot added optimizer Optimizer rules sqllogictest SQL Logic Tests (.slt) labels Aug 5, 2024

@mustafasrepomustafasrepo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!. Thanks @mertak-synnada for this PR.

.iter()
.enumerate()
.all(|(idx, f_idx)| idx == *f_idx)
if dep.source_indices.len() >= field_count

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

is this change required for the test to pass? Or is it a "drive by" cleanup (made while you were making the change already but not required)?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

This one was required to make the test pass

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice -- so this also fixes a bug 🚀

@alambalamb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you @mertak-synnada

@alamb
alamb merged commit 6aad19f into apache:mainAug 5, 2024
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

optimizerOptimizer rulessqllogictestSQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@mertak-synnada@alamb@mustafasrepo