yuqi1129 commented on code in PR #4343: URL: https://github.com/apache/gravitino/pull/4343#discussion_r1705016536
########## catalogs/catalog-jdbc-doris/src/main/java/org/apache/gravitino/catalog/doris/operation/DorisTableOperations.java: ########## @@ -164,6 +168,37 @@ protected String generateCreateTableSql( return result; } + private Map<String, String> appendNecessaryProperties(Map<String, String> properties) { + Map<String, String> resultMap; + if (properties == null) { + resultMap = new HashMap<>(); + } else { + resultMap = new HashMap<>(properties); + } + + // If the backend server is less than 3, we need to set the property 'replication_allocation' + // to 1 explicitly. + if (!properties.containsKey(REPLICATION_FACTOR)) { Review Comment: > The default value will only be used when the backend server is less than 3. I mean we will use the default value when the following two conditions are both true - Users do not set the value explicitly. - The number of backend servers is less than 3. -- 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. To unsubscribe, e-mail: commits-unsubscr...@gravitino.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org