seawinde commented on code in PR #37561:
URL: https://github.com/apache/doris/pull/37561#discussion_r1675146649


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/jobs/cascades/OptimizeGroupExpressionJob.java:
##########
@@ -102,10 +101,6 @@ private List<Rule> getJoinRules() {
     }
 
     private List<Rule> getMvRules() {
-        ConnectContext connectContext = 
context.getCascadesContext().getConnectContext();

Review Comment:
   add new session variable `enable_dml_materialized_view_rewrite`, this only 
use `enable_materialized_view_rewrite `
   controlled by inner materialied view rule by 
   `        if (cascadesContext.getMaterializationContexts().isEmpty()) {
               return rewrittenPlans;
           }`



-- 
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: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to