-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[fix](CostBasedRewriteJob)restore StatementContext.rewrittenCteProducer in CostBasedRewriteJob #59517
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
Conversation
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
|
run buildall |
6e97d27 to
073c151
Compare
|
run buildall |
TPC-H: Total hot run time: 32774 ms |
TPC-DS: Total hot run time: 173200 ms |
ClickBench: Total hot run time: 26.79 s |
|
run buildall |
TPC-H: Total hot run time: 32270 ms |
TPC-DS: Total hot run time: 172742 ms |
ClickBench: Total hot run time: 27.06 s |
ef065c6 to
4438cb1
Compare
|
run buildall |
TPC-H: Total hot run time: 32582 ms |
TPC-DS: Total hot run time: 173742 ms |
ClickBench: Total hot run time: 27.28 s |
FE Regression Coverage ReportIncrement line coverage |
fe/fe-core/src/main/java/org/apache/doris/nereids/jobs/rewrite/CostBasedRewriteJob.java
Outdated
Show resolved
Hide resolved
fe/fe-core/src/main/java/org/apache/doris/nereids/jobs/rewrite/CostBasedRewriteJob.java
Show resolved
Hide resolved
fe/fe-core/src/main/java/org/apache/doris/nereids/jobs/rewrite/CostBasedRewriteJob.java
Outdated
Show resolved
Hide resolved
|
run buildall |
TPC-H: Total hot run time: 31683 ms |
TPC-DS: Total hot run time: 172076 ms |
ClickBench: Total hot run time: 26.51 s |
|
run buildall |
TPC-H: Total hot run time: 31160 ms |
TPC-DS: Total hot run time: 173647 ms |
FE UT Coverage ReportIncrement line coverage |
|
run p0 |
1 similar comment
|
run p0 |
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
yujun777
left a comment
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
|
run nonConcurrent |
What problem does this PR solve?
cost based rewrite job may contaminate StatementContext.rewrittenCteProducer
fix solution: clone current rewrittenCteProducer, and restore it after each call to getCost(...)
Issue Number: close #xxx
Related PR: #21727
Problem Summary:
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)