From 5d17ff9d95040c7f95940d38f59832907f55adc0 Mon Sep 17 00:00:00 2001 From: zhangdong <493738387@qq.com> Date: Thu, 18 Jul 2024 23:52:34 +0800 Subject: [PATCH] [fix](mtmv)Mtmv support force replica 2.1 (#38090) master do not have bug, because has call `PropertyAnalyzer.getInstance().rewriteOlapProperties` 2.1 not have this method ,should call `PropertyAnalyzer.rewriteReplicaAllocationProperties` --- .../doris/nereids/trees/plans/commands/info/CreateMTMVInfo.java | 1 + 1 file changed, 1 insertion(+) diff --git a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/info/CreateMTMVInfo.java b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/info/CreateMTMVInfo.java index 7b0ba49524..55b2e379f8 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/info/CreateMTMVInfo.java +++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/info/CreateMTMVInfo.java @@ -185,6 +185,7 @@ public class CreateMTMVInfo { } private void analyzeProperties() { + properties = PropertyAnalyzer.rewriteReplicaAllocationProperties(mvName.getCtl(), mvName.getDb(), properties); if (DynamicPartitionUtil.checkDynamicPartitionPropertiesExist(properties)) { throw new AnalysisException("Not support dynamic partition properties on async materialized view"); }