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

Split the aggregated results and grouped results into chunks. #20632

Closed
wants to merge 57 commits into from

Conversation

m-schen
Copy link
Contributor

@m-schen m-schen commented Dec 6, 2024

What type of PR is this?

  • API-change
  • BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

Which issue(s) this PR fixes:

https://github.com/matrixorigin/MO-Cloud/issues/4084
https://github.com/matrixorigin/MO-Cloud/issues/3831
#17841
Maybe Fix: #14675

What this PR does / why we need it:

  1. 根据不同类型使用固定的行数对Agg的结果进行拆分,避免发生单个内存超过1G的错误。(字符串类型目前是32768行拆分一次,仍旧存在超过1g的可能性,这个数字是根据目前单行varchar数据不超过16kb来的)。
  2. 简化Group, MergeGroup算子的逻辑。group列的拆分逻辑保持与Agg一致。
  3. 删除AggExec包下多余的代码。

@m-schen
Copy link
Contributor Author

m-schen commented Dec 10, 2024

将pick到main上,暂关闭该pull request.

@m-schen m-schen closed this Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do-not-merge/wip kind/bug Something isn't working kind/enhancement size/XXL Denotes a PR that changes 2000+ lines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants