-
Notifications
You must be signed in to change notification settings - Fork 3.5k
[fix](mtmv) Fix materialized rewrite oom when the num of relation mapping is too large #48887
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 |
1 similar comment
run buildall |
TPC-H: Total hot run time: 32236 ms
|
TPC-DS: Total hot run time: 192253 ms
|
ClickBench: Total hot run time: 30.62 s
|
boolean[] used, MappedRelation[] current, List<Pair<MappedRelation[], MappedRelation[]>> results, | ||
int maxMappingCount) { | ||
if (results.size() >= maxMappingCount) { | ||
LOG.warn("queryToViewTableMappings is over limit and be intercepted"); |
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.
log size and other key info here
718fc16
to
61ff18d
Compare
run buildall |
TPC-H: Total hot run time: 32610 ms
|
TPC-DS: Total hot run time: 192447 ms
|
ClickBench: Total hot run time: 30.97 s
|
LOG.warn(String.format("queryToViewTableMappings is over limit and be intercepted, " | ||
+ "results size is %s,\n MappedRelation left is %s,\n MappedRelation right is %s \n", | ||
results.size(), Arrays.toString(left), Arrays.toString(right))); |
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.
do not use String.format use log place holder instead. do not use \n
in log normally, because it is not friendly for auto log analysis
LOG.warn(String.format("queryToViewTableMappings is over limit and be intercepted, " | |
+ "results size is %s,\n MappedRelation left is %s,\n MappedRelation right is %s \n", | |
results.size(), Arrays.toString(left), Arrays.toString(right))); | |
LOG.warn("queryToViewTableMappings is over limit and be intercepted, " | |
+ "results size is {}, MappedRelation left is {}, MappedRelation right is {}", | |
results.size(), left, right); |
run buildall |
TPC-H: Total hot run time: 32710 ms
|
TPC-DS: Total hot run time: 185973 ms
|
ClickBench: Total hot run time: 31.26 s
|
034451b
to
6592ea6
Compare
run buildall |
TPC-H: Total hot run time: 32114 ms
|
TPC-DS: Total hot run time: 192356 ms
|
ClickBench: Total hot run time: 30.82 s
|
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
PR approved by anyone and no changes requested. |
e3ea000
to
c801da8
Compare
run buildall |
TPC-H: Total hot run time: 35606 ms
|
TPC-DS: Total hot run time: 192989 ms
|
ClickBench: Total hot run time: 31.87 s
|
run buildall |
TPC-H: Total hot run time: 33953 ms
|
TPC-DS: Total hot run time: 193095 ms
|
ClickBench: Total hot run time: 30.86 s
|
PR approved by at least one committer and no changes requested. |
…ping is too large (#48887) ### What problem does this PR solve? Fix materialized rewrite oom when the num of relation mapping is two large In a database query with 10 self-joins on the same table, there would be 10! = 3,628,800 unique permutation combinations. These need to be pruned in advance through query optimization to avoid excessive memory consumption
…ping is too large (apache#48887) Fix materialized rewrite oom when the num of relation mapping is two large In a database query with 10 self-joins on the same table, there would be 10! = 3,628,800 unique permutation combinations. These need to be pruned in advance through query optimization to avoid excessive memory consumption
…ping is too large (apache#48887) ### What problem does this PR solve? Fix materialized rewrite oom when the num of relation mapping is two large In a database query with 10 self-joins on the same table, there would be 10! = 3,628,800 unique permutation combinations. These need to be pruned in advance through query optimization to avoid excessive memory consumption
What problem does this PR solve?
Fix materialized rewrite oom when the num of relation mapping is two large
In a database query with 10 self-joins on the same table, there would be 10! = 3,628,800 unique permutation combinations. These need to be pruned in advance through query optimization to avoid excessive memory consumption
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
Release note
Fix materialized rewrite oom when the num of relation mapping is two large
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)