diff --git a/fe/fe-core/src/main/java/org/apache/doris/mtmv/MTMVPlanUtil.java b/fe/fe-core/src/main/java/org/apache/doris/mtmv/MTMVPlanUtil.java index 576e87b44f8d3e6..e13964e7ef77706 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/mtmv/MTMVPlanUtil.java +++ b/fe/fe-core/src/main/java/org/apache/doris/mtmv/MTMVPlanUtil.java @@ -67,7 +67,9 @@ public static ConnectContext createMTMVContext(MTMV mtmv) { ctx.getSessionVariable().allowModifyMaterializedViewData = true; // Disable add default limit rule to avoid refresh data wrong ctx.getSessionVariable().setDisableNereidsRules( - String.join(",", ImmutableSet.of(RuleType.ADD_DEFAULT_LIMIT.name()))); + String.join(",", ImmutableSet.of( + "COMPRESSED_MATERIALIZE_AGG", "COMPRESSED_MATERIALIZE_SORT", + RuleType.ADD_DEFAULT_LIMIT.name()))); Optional workloadGroup = mtmv.getWorkloadGroup(); if (workloadGroup.isPresent()) { ctx.getSessionVariable().setWorkloadGroup(workloadGroup.get());