[Bug] fix show dynamic partition tables; replicationNum is wrong (#6128)

This commit is contained in:
qiye
2021-07-01 09:20:52 +08:00
committed by GitHub
parent bdafb61ae1
commit f01c8e570d

View File

@ -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()),