yuqi1129 commented on code in PR #4343: URL: https://github.com/apache/gravitino/pull/4343#discussion_r1704990332
########## 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: I don't care about the result of `propertiesMetadata.getOrDefault` and only mind whether users have set property `REPLICATION_FACTOR` or not. -- 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