You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "mrhhsg (via GitHub)" <gi...@apache.org> on 2026/03/24 09:51:52 UTC
[PR] [branch-4.1](spill) Support multi-level partition spilling (#61212) [doris]
mrhhsg opened a new pull request, #61677:
URL: https://github.com/apache/doris/pull/61677
Pick #61212
This PR adds support for spill repartition in partitioned operators.
When memory is still insufficient after a partition has been spilled, the spilled partition can be repartitioned into smaller sub-partitions, which further reduces peak memory usage. The repartitioner is made level-aware so repartition can be applied recursively when needed.
This PR also integrates the new spill repartition flow into partitioned hash join and partitioned aggregation, adds force-spill logic in the join sink operator, refactors spill file interfaces, improves spill metadata maintenance and memory-pressure handling, and fixes several spill-related issues such as revocable memory accounting and profile updates.
Related PR: #xxx
Problem Summary:
None
- Test <!-- At least one of them must be included. -->
- [ ] Regression test
- [ ] Unit Test
- [ ] Manual test (add detailed scripts or steps below)
- [ ] No need to test or manual test. Explain why:
- [ ] This is a refactor/code format and no logic has been changed.
- [ ] Previous test can cover this change. - [ ] No code files have been changed. - [ ] Other reason <!-- Add your reason? -->
- Behavior changed:
- [ ] No.
- [ ] Yes. <!-- Explain the behavior change -->
- Does this need documentation?
- [ ] No.
- [ ] Yes. <!-- Add document PR link here. eg: https://github.com/apache/doris-website/pull/1214 -->
- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR should merge into -->
---------
### What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
### Release note
None
### Check List (For Author)
- Test <!-- At least one of them must be included. -->
- [ ] Regression test
- [ ] Unit Test
- [ ] Manual test (add detailed scripts or steps below)
- [ ] No need to test or manual test. Explain why:
- [ ] This is a refactor/code format and no logic has been changed.
- [ ] Previous test can cover this change.
- [ ] No code files have been changed.
- [ ] Other reason <!-- Add your reason? -->
- Behavior changed:
- [ ] No.
- [ ] Yes. <!-- Explain the behavior change -->
- Does this need documentation?
- [ ] No.
- [ ] Yes. <!-- Add document PR link here. eg: https://github.com/apache/doris-website/pull/1214 -->
### Check List (For Reviewer who merge this PR)
- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR should merge into -->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [branch-4.1](spill) Support multi-level partition spilling (#61212) [doris]
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #61677:
URL: https://github.com/apache/doris/pull/61677#issuecomment-4118560122
# BE Regression && UT Coverage Report
Increment line coverage `84.97% (1804/2123)` :tada:
[Increment coverage report](http://coverage.selectdb-in.cc/coverage/61677_98a2fb3c656dff04b520c2d6e388330313e9e0df_merge/increment_report/index.html)
[Complete coverage report](http://coverage.selectdb-in.cc/coverage/61677_98a2fb3c656dff04b520c2d6e388330313e9e0df_merge/report/index.html)
| Category | Coverage |
|-------------------|--------------------|
| Function Coverage | 71.86% (26027/36219) |
| Line Coverage | 55.03% (276453/502364) |
| Region Coverage | 52.56% (229955/437479) |
| Branch Coverage | 54.15% (99581/183886) |
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [branch-4.1](spill) Support multi-level partition spilling (#61212) [doris]
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #61677:
URL: https://github.com/apache/doris/pull/61677#issuecomment-4123757644
# BE Regression && UT Coverage Report
Increment line coverage `84.97% (1804/2123)` :tada:
[Increment coverage report](http://coverage.selectdb-in.cc/coverage/61677_98a2fb3c656dff04b520c2d6e388330313e9e0df_merge/increment_report/index.html)
[Complete coverage report](http://coverage.selectdb-in.cc/coverage/61677_98a2fb3c656dff04b520c2d6e388330313e9e0df_merge/report/index.html)
| Category | Coverage |
|-------------------|--------------------|
| Function Coverage | 71.86% (26027/36219) |
| Line Coverage | 55.03% (276453/502364) |
| Region Coverage | 52.56% (229955/437479) |
| Branch Coverage | 54.15% (99581/183886) |
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [branch-4.1](spill) Support multi-level partition spilling (#61212) [doris]
Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #61677:
URL: https://github.com/apache/doris/pull/61677#issuecomment-4118515255
# BE UT Coverage Report
Increment line coverage `84.58% (1805/2134)` :tada:
[Increment coverage report](http://coverage.selectdb-in.cc/coverage/98a2fb3c656dff04b520c2d6e388330313e9e0df_98a2fb3c656dff04b520c2d6e388330313e9e0df/increment_report/index.html)
[Complete coverage report](http://coverage.selectdb-in.cc/coverage/98a2fb3c656dff04b520c2d6e388330313e9e0df_98a2fb3c656dff04b520c2d6e388330313e9e0df/report/index.html)
| Category | Coverage |
|-------------------|--------------------|
| Function Coverage | 52.74% (19518/37011) |
| Line Coverage | 36.12% (182060/504081) |
| Region Coverage | 32.42% (140530/433513) |
| Branch Coverage | 33.62% (61646/183366) |
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [branch-4.1](spill) Support multi-level partition spilling (#61212) [doris]
Posted by "mrhhsg (via GitHub)" <gi...@apache.org>.
mrhhsg commented on PR #61677:
URL: https://github.com/apache/doris/pull/61677#issuecomment-4116819855
run buildall
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [branch-4.1](spill) Support multi-level partition spilling (#61212) [doris]
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #61677:
URL: https://github.com/apache/doris/pull/61677#issuecomment-4117048094
# Cloud UT Coverage Report
Increment line coverage ` ` :tada:
[Increment coverage report](http://coverage.selectdb-in.cc/coverage/98a2fb3c656dff04b520c2d6e388330313e9e0df_98a2fb3c656dff04b520c2d6e388330313e9e0df_cloud/increment_report/index.html)
[Complete coverage report](http://coverage.selectdb-in.cc/coverage/98a2fb3c656dff04b520c2d6e388330313e9e0df_98a2fb3c656dff04b520c2d6e388330313e9e0df_cloud/report/index.html)
| Category | Coverage |
|-------------------|--------------------|
| Function Coverage | 78.54% (1786/2274) |
| Line Coverage | 64.35% (32020/49759) |
| Region Coverage | 65.16% (16012/24572) |
| Branch Coverage | 55.65% (8523/15314) |
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [branch-4.1](spill) Support multi-level partition spilling (#61212) [doris]
Posted by "Thearas (via GitHub)" <gi...@apache.org>.
Thearas commented on PR #61677:
URL: https://github.com/apache/doris/pull/61677#issuecomment-4116818420
Thank you for your contribution to Apache Doris.
Don't know what should be done next? See [How to process your PR](https://cwiki.apache.org/confluence/display/DORIS/How+to+process+your+PR).
Please clearly describe your PR:
1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
3. What features were added. Why was this function added?
4. Which code was refactored and why was this part of the code refactored?
5. Which functions were optimized and what is the difference before and after the optimization?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [branch-4.1](spill) Support multi-level partition spilling (#61212) [doris]
Posted by "yiguolei (via GitHub)" <gi...@apache.org>.
yiguolei merged PR #61677:
URL: https://github.com/apache/doris/pull/61677
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org