924060929 commented on code in PR #50895:
URL: https://github.com/apache/doris/pull/50895#discussion_r2221020084
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/StatementContext.java:
##########
@@ -251,6 +257,22 @@ public enum TableFrom {
private boolean prepareStage = false;
+ // this record the tmp plan in RBO for later pre materialized view rewrite
+ private final List<Plan> tmpPlanForMvRewrite = new ArrayList<>();
+ // this record the rewritten plan by mv in RBO phase
+ private final List<Plan> rewrittenPlansByMv = new ArrayList<>();
+ private boolean forceRecordTmpPlan = false;
+ // this record the rule in
PreMaterializedViewRewriter.NEED_PRE_REWRITE_RULE_TYPES if is applied
successfully
+ // or not, if success and in PreRewriteStrategy.FOR_IN_ROB or
PreRewriteStrategy.TRY_IN_ROB, mv
+ // would be written in RBO phase
+ private final BitSet needPreMvRewriteRuleMasks = new
BitSet(RuleType.SENTINEL.ordinal());
+ // if needed to rewrite in RBO phase, this would be set true
+ private boolean needPreRewrite = false;
+ // mark is rewritten in RBO phase, if rewritten in RBO phase should set
true
+ private boolean preRewritten = false;
Review Comment:
rename to xxxPreRewritxxxMv
--
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]