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
support Sort operator auto spill when query memory usage exceed threshold #7900
Conversation
9b2743c
to
4c3dda1
Compare
/run-all-tests |
1 similar comment
/run-all-tests |
/run-unit-test |
611309a
to
11e82ce
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost LGTM
ee39601
to
e388f3b
Compare
e388f3b
to
6c4f3de
Compare
6c4f3de
to
138a326
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: SeaRise, yibin87 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Signed-off-by: xufei <xufeixw@mail.ustc.edu.cn>
Signed-off-by: xufei <xufeixw@mail.ustc.edu.cn>
Signed-off-by: xufei <xufeixw@mail.ustc.edu.cn>
Signed-off-by: xufei <xufeixw@mail.ustc.edu.cn>
Co-authored-by: SeaRise <hhssearise@foxmail.com>
Signed-off-by: xufei <xufeixw@mail.ustc.edu.cn>
Signed-off-by: xufei <xufeixw@mail.ustc.edu.cn>
Signed-off-by: xufei <xufeixw@mail.ustc.edu.cn>
e8d31af
to
7496e48
Compare
/run-all-tests |
What problem does this PR solve?
Issue Number: ref #7738
Problem Summary:
What is changed and how it works?
Support sort operator auto spill when query memory usage exceeds the threshold. The basic idea is
OperatorSpillContext
that support auto spill(currently, onlySortSpillContext
)AutoSpillTrigger
will be set to the executor(support both pull model and push model)AutoSpillTrigger
if current query memory usage exeeed the thresholdAutoSpillTrigger
, it check and mark operator to spill if possibleUpdateRevocableMemoryUsage
, and begin to spill if neededCheck List
Tests
Side effects
Documentation
Release note