seawinde opened a new pull request, #67241:
URL: https://github.com/apache/doris/pull/67241

   ### 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.
   
   | File | Change Description |
   |------|-------------------|
   | `PreMaterializedViewRewriter.java` | Document the pre-rewrite lifecycle, 
`NEED_PRE_REWRITE_RULE_TYPES`, and the isolated CBO selection flow. |
   | `AbstractMaterializedViewRule.java` | Add the end-to-end rewrite diagram, 
numbered core stages, and method contracts for predicate and expression 
rewriting. |
   | `StructInfo.java` | Explain the semantic hypergraph compatibility result 
produced by `isGraphLogicalEquals`. |
   | `PartitionCompensator.java` | Explain eligibility and safety constraints 
for partition UNION compensation. |
   
   No plan behavior, API, or runtime logic is changed.
   
   ### Release note
   
   None
   
   ### Check List (For Author)
   
   - Test
       - [ ] Regression test
       - [ ] Unit Test
       - [x] Manual test (add detailed scripts or steps below)
           - `mvn -pl fe-core -am -DskipTests -Dskip.doc=true validate`
       - [ ] No need to test or manual test. Explain why:
           - [ ] This is a refactor/code format and no logic has been changed.
           - [ ] Previous test can cover this change.
           - [ ] No code files have been changed.
           - [ ] Other reason
   
   - Behavior changed:
       - [x] No.
       - [ ] Yes.
   
   - Does this need documentation?
       - [x] No.
       - [ ] Yes.
   
   ### Check List (For Reviewer who merge this PR)
   
   - [ ] Confirm the release note
   - [ ] Confirm test cases
   - [ ] Confirm document
   - [ ] Add branch pick label


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to