Conversation
### What problem does this PR solve?
Issue Number: None
Related PR: None
Problem Summary: Document the transparent materialized view pre-rewrite trigger and the core query-to-view matching, predicate compensation, expression rewrite, and partition union compensation flow.
### Release note
None
### Check List (For Author)
- Test: Manual test
- mvn -pl fe-core -am -DskipTests -Dskip.doc=true validate
- Behavior changed: No
- Does this need documentation: No
Contributor
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
Member
Author
|
run buildall |
### What problem does this PR solve? Issue Number: None Related PR: apache#67241 Problem Summary: Explain the rewriteQueryByView extension point, including its MV-scan input, rule-family responsibilities, expression mappings, output contract, and failure semantics. ### Release note None ### Check List (For Author) - Test: Manual test - mvn -pl fe-core -am -DskipTests -Dskip.doc=true validate - Behavior changed: No - Does this need documentation: No
seawinde
marked this pull request as ready for review
August 28, 2026 03:14
seawinde
requested review from
924060929,
englefly,
morrySnow and
starocean999
as code owners
August 28, 2026 03:14
Contributor
TPC-H: Total hot run time: 16825 ms |
Contributor
TPC-DS: Total hot run time: 83905 ms |
Contributor
FE UT Coverage ReportIncrement line coverage |
Contributor
ClickBench: Total hot run time: 14.89 s |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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?
Issue Number: N/A
Related PR: N/A
Problem Summary:
The transparent materialized view rewrite flow spans pre-RBO plan capture, graph compatibility, predicate compensation, expression rewriting, rule-specific plan reconstruction, and partition UNION compensation. The core code did not provide an end-to-end guide connecting these stages, which made the rewrite invariants difficult to review and maintain.
This PR adds comments only. It documents the pre-rewrite trigger mask and adds staged flow descriptions around the shared materialized view rewrite template and its core helper methods.
PreMaterializedViewRewriter.javaNEED_PRE_REWRITE_RULE_TYPES, and the isolated CBO selection flow.AbstractMaterializedViewRule.javaStructInfo.javaisGraphLogicalEquals.PartitionCompensator.javaNo plan behavior, API, or runtime logic is changed.
Release note
None
Check List (For Author)
Test
mvn -pl fe-core -am -DskipTests -Dskip.doc=true validateBehavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)