Skip to content

Conversation

@mertak-synnada
Copy link

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-actions github-actions bot added optimizer Optimizer rules sqllogictest SQL Logic Tests (.slt) labels Aug 5, 2024
Copy link
Contributor

@mustafasrepo mustafasrepo left a comment

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
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
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
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 🚀

Copy link
Contributor

@alamb alamb left a comment

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:main Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

optimizer Optimizer rules sqllogictest SQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants