From f01c8e570d34618e417a312bf3979b698e128482 Mon Sep 17 00:00:00 2001 From: qiye Date: Thu, 1 Jul 2021 09:20:52 +0800 Subject: [PATCH] [Bug] fix show dynamic partition tables; replicationNum is wrong (#6128) --- fe/fe-core/src/main/java/org/apache/doris/qe/ShowExecutor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/qe/ShowExecutor.java b/fe/fe-core/src/main/java/org/apache/doris/qe/ShowExecutor.java index 06620fa0f9..bcc1ddf23b 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/qe/ShowExecutor.java +++ b/fe/fe-core/src/main/java/org/apache/doris/qe/ShowExecutor.java @@ -1738,7 +1738,7 @@ public class ShowExecutor { DynamicPartitionProperty dynamicPartitionProperty = olapTable.getTableProperty().getDynamicPartitionProperty(); String tableName = olapTable.getName(); int replicationNum = dynamicPartitionProperty.getReplicationNum(); - replicationNum = (replicationNum == DynamicPartitionProperty.NOT_SET_REPLICATION_NUM) ? olapTable.getDefaultReplicationNum() : FeConstants.default_replication_num; + replicationNum = (replicationNum == DynamicPartitionProperty.NOT_SET_REPLICATION_NUM) ? olapTable.getDefaultReplicationNum() : replicationNum; rows.add(Lists.newArrayList( tableName, String.valueOf(dynamicPartitionProperty.getEnable()),