-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[opt](mtmv) optimize mtmv rewrite performance #49514
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
Merged
morrySnow
merged 15 commits into
apache:master
from
seawinde:mtmv_rewrite_performance_pick_to_master
May 16, 2025
Merged
[opt](mtmv) optimize mtmv rewrite performance #49514
morrySnow
merged 15 commits into
apache:master
from
seawinde:mtmv_rewrite_performance_pick_to_master
May 16, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contributor
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
Contributor
Author
|
run buildall |
TPC-H: Total hot run time: 34130 ms |
TPC-DS: Total hot run time: 193510 ms |
ClickBench: Total hot run time: 31.66 s |
Contributor
Author
|
run buildall |
TPC-H: Total hot run time: 34475 ms |
TPC-DS: Total hot run time: 187498 ms |
ClickBench: Total hot run time: 31.52 s |
Contributor
Author
|
run buildall |
TPC-H: Total hot run time: 34049 ms |
TPC-DS: Total hot run time: 193511 ms |
ClickBench: Total hot run time: 31.36 s |
Contributor
Author
|
run buildall |
TPC-H: Total hot run time: 34060 ms |
TPC-DS: Total hot run time: 193034 ms |
ClickBench: Total hot run time: 30.76 s |
42685e1 to
cc62e25
Compare
Contributor
Author
|
run buildall |
TPC-H: Total hot run time: 33828 ms |
TPC-DS: Total hot run time: 193132 ms |
ClickBench: Total hot run time: 30.6 s |
Contributor
Author
|
run buildall |
TPC-H: Total hot run time: 35350 ms |
TPC-DS: Total hot run time: 185492 ms |
ClickBench: Total hot run time: 31.46 s |
Contributor
Author
|
run buildall |
789842a to
cda01c2
Compare
Contributor
Author
|
run buildall |
TPC-H: Total hot run time: 34411 ms |
koarz
pushed a commit
to koarz/doris
that referenced
this pull request
Jun 4, 2025
### What problem does this PR solve?
- Obtaining available materialized view adjustments after partition
pruning RBO rewrite rules. This reduces partition version comparison
overhead for partitioned materializations, thereby improving
performance.
- Set maximum time threshold for transparent query rewriting with
default value of 1000ms. Rewrite attempts will be terminated if
exceeding this threshold.
set materialized_view_rewrite_duration_threshold_ms = 1000
- Optimize code structure in transparent rewriting framework:
1. Replace Lambda expressions with conventional for-loops
2. Remove redundant member variables
- Cache available partitions of materialized views. Since calculating
available partitions for materialized views is time-consuming,
caching can significantly enhance performance.
Co-authored-by: zhangdong <zhangdong@selectdb.com>
16 tasks
dataroaring
pushed a commit
that referenced
this pull request
Jun 18, 2025
seawinde
added a commit
to seawinde/doris
that referenced
this pull request
Jun 24, 2025
- Obtaining available materialized view adjustments after partition
pruning RBO rewrite rules. This reduces partition version comparison
overhead for partitioned materializations, thereby improving
performance.
- Set maximum time threshold for transparent query rewriting with
default value of 1000ms. Rewrite attempts will be terminated if
exceeding this threshold.
set materialized_view_rewrite_duration_threshold_ms = 1000
- Optimize code structure in transparent rewriting framework:
1. Replace Lambda expressions with conventional for-loops
2. Remove redundant member variables
- Cache available partitions of materialized views. Since calculating
available partitions for materialized views is time-consuming,
caching can significantly enhance performance.
Co-authored-by: zhangdong <zhangdong@selectdb.com>
morrySnow
pushed a commit
that referenced
this pull request
Jun 25, 2025
yiguolei
pushed a commit
that referenced
this pull request
Jun 25, 2025
…rtition external table (#52218) Fix compensate union all wrongly when partition mv use partition external table in test mv/external_table/part_partition_invalid.groovy order_qt_after_modify_data_and_refresh_catalog data should be as following: ``` 1 2 1 2023-10-17 2023-10-17 2 2 2 2023-10-18 2023-10-18 3 2 3 2023-10-19 2023-10-19 ``` ### What problem does this PR solve? Issue Number: close #xxx Related PR: #49514 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. - [x] 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: apache/doris-website#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 -->
dataroaring
pushed a commit
that referenced
this pull request
Jun 30, 2025
…rtition external table (#52223) Fix compensate union all wrongly when partition mv use partition external table in test mv/external_table/part_partition_invalid.groovy order_qt_after_modify_data_and_refresh_catalog data should be as following: ``` 1 2 1 2023-10-17 2023-10-17 2 2 2 2023-10-18 2023-10-18 3 2 3 2023-10-19 2023-10-19 ``` Related PR: #49514
koarz
pushed a commit
to koarz/doris
that referenced
this pull request
Jul 3, 2025
…rtition external table (apache#52223) Fix compensate union all wrongly when partition mv use partition external table in test mv/external_table/part_partition_invalid.groovy order_qt_after_modify_data_and_refresh_catalog data should be as following: ``` 1 2 1 2023-10-17 2023-10-17 2 2 2 2023-10-18 2023-10-18 3 2 3 2023-10-19 2023-10-19 ``` Related PR: apache#49514
16 tasks
wyxxxcat
pushed a commit
to wyxxxcat/doris
that referenced
this pull request
Nov 18, 2025
apache#57558) Related PR: apache#49514 apache#56958 Problem Summary: In the scenario of nested materialized view rewriting, if the underlying materialized view is a partitioned materialized view, the rewriting of the upper-level materialized view would fail. This PR fixes the issue.
seawinde
added a commit
to seawinde/doris
that referenced
this pull request
Nov 24, 2025
apache#57558) Related PR: apache#49514 apache#56958 Problem Summary: In the scenario of nested materialized view rewriting, if the underlying materialized view is a partitioned materialized view, the rewriting of the upper-level materialized view would fail. This PR fixes the issue.
seawinde
added a commit
to seawinde/doris
that referenced
this pull request
Nov 24, 2025
apache#57558) Related PR: apache#49514 apache#56958 Problem Summary: In the scenario of nested materialized view rewriting, if the underlying materialized view is a partitioned materialized view, the rewriting of the upper-level materialized view would fail. This PR fixes the issue.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
approved
Indicates a PR has been approved by one committer.
dev/2.1.11-merged
dev/3.0.7-merged
dev/3.1.0-merged
reviewed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What problem does this PR solve?
set materialized_view_rewrite_duration_threshold_ms = 1000Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)