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

fix(planner): fix some cases in aggregator plan #5307

Merged
merged 3 commits into from
May 12, 2022

Conversation

xudong963
Copy link
Member

@xudong963 xudong963 commented May 11, 2022

I hereby agree to the terms of the CLA available at: https://databend.rs/dev/policies/cla/

Summary

Fix two dizzying bugs in the aggregator and support more cases.

After limit is supported, I'll open another ticket to make all the old planner's aggregator tests with limit pass. Then aggregator migration will finish!

Changelog

  • Bug Fix

Related Issues

Fixes #issue

@vercel
Copy link

vercel bot commented May 11, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated
databend ⬜️ Ignored (Inspect) May 12, 2022 at 3:35AM (UTC)

@mergify
Copy link
Contributor

mergify bot commented May 11, 2022

Thanks for the contribution!
I have applied any labels matching special text in your PR Changelog.

Please review the labels and make any necessary changes.

@mergify mergify bot added the pr-bugfix this PR patches a bug in codebase label May 11, 2022
@xudong963 xudong963 requested a review from leiysky May 11, 2022 13:31
@leiysky
Copy link
Contributor

leiysky commented May 11, 2022

I suggest to do some minor refactor for GROUP BY.

It's better to move agg_scalar_exprs and origin_group_by out of BindContext(maybe put them into a new struct AggregateInfo), and collect needed information in analyze_aggregate.

@xudong963
Copy link
Member Author

It's better to move agg_scalar_exprs and origin_group_by out of BindContext(maybe put them into a new struct AggregateInfo), and collect needed information in analyze_aggregate.

Nice suggestions!

@xudong963
Copy link
Member Author

Done, PTAL @leiysky

@xudong963 xudong963 requested review from sundy-li and removed request for BohuTANG May 12, 2022 01:37
@xudong963 xudong963 merged commit 024d4c8 into databendlabs:main May 12, 2022
@xudong963 xudong963 deleted the agg_others branch May 12, 2022 04:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need-review pr-bugfix this PR patches a bug in codebase
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants