morningman commented on a change in pull request #2737: Support replication_num 
setting for table level
URL: https://github.com/apache/incubator-doris/pull/2737#discussion_r366163562
 
 

 ##########
 File path: fe/src/main/java/org/apache/doris/catalog/OlapTable.java
 ##########
 @@ -1203,4 +1203,19 @@ public boolean 
convertRandomDistributionToHashDistribution() {
         }
         return hasChanged;
     }
+
+    public void setReplicationNum(Short replicationNum) {
+        if (tableProperty == null) {
+            tableProperty = new TableProperty(new HashMap<String, String>());
+        }
+        
tableProperty.getProperties().put(PropertyAnalyzer.PROPERTIES_REPLICATION_NUM, 
replicationNum.toString());
+    }
+
+    public Short getReplicationNum() {
 
 Review comment:
   how about just return `FeConstants.default_replication_num` is there is no 
default replica num?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to