Skip to content

Implement tree explain for AggregateExec #15103

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

Merged
merged 3 commits into from
Mar 11, 2025
Merged

Conversation

zebsme
Copy link
Contributor

@zebsme zebsme commented Mar 9, 2025

Which issue does this PR close?

What changes are included in this PR?

  1. Implement AggregateExec
  2. Update related tests

Are these changes tested?

Yes

Are there any user-facing changes?

No

@github-actions github-actions bot added the sqllogictest SQL Logic Tests (.slt) label Mar 9, 2025
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 for this contribution @zebsme

@zebsme zebsme requested a review from alamb March 11, 2025 03:55
Comment on lines 817 to 822
let e = e.to_string();
if &e != alias {
format!("{e} as {alias}")
} else {
e
}
Copy link
Member

Choose a reason for hiding this comment

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

Could you extract this logic? It would greatly increase readability.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you @Weijun-H -- amazing suggestion :)
and already updated

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 so much @zebsme and @Weijun-H - this looks really nice now 👏

@alamb
Copy link
Contributor

alamb commented Mar 11, 2025

I also tested that these tests pass on main after merging up

@alamb alamb merged commit 411185f into apache:main Mar 11, 2025
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sqllogictest SQL Logic Tests (.slt)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement tree explain for AggregateExec
3 participants