seawinde commented on code in PR #37561: URL: https://github.com/apache/doris/pull/37561#discussion_r1675129190
########## fe/fe-core/src/main/java/org/apache/doris/mtmv/MTMVRewriteUtil.java: ########## @@ -48,15 +48,6 @@ public static Collection<Partition> getMTMVCanRewritePartitions(MTMV mtmv, Conne long currentTimeMills) { List<Partition> res = Lists.newArrayList(); Collection<Partition> allPartitions = mtmv.getPartitions(); - // check session variable if enable rewrite - if (!ctx.getSessionVariable().isEnableMaterializedViewRewrite()) { Review Comment: Because we would support the mv rewrite in dml, it is controlled by `enable_dml_materialized_view_rewrite`. So delete the logic, and this session variable is controlled by high level caller -- 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