JNSimba commented on code in PR #208: URL: https://github.com/apache/doris-flink-connector/pull/208#discussion_r1361565975
########## flink-doris-connector/src/main/java/org/apache/doris/flink/tools/cdc/DatabaseSync.java: ########## @@ -250,8 +288,42 @@ public static class TableNameConverter implements Serializable { this.suffix = suffix == null ? "" : suffix; } + TableNameConverter(String prefix, String suffix,Pattern multiToOnePattern,Map<Pattern, String> multiToOneRulesPattern) { + this.prefix = prefix == null ? "" : prefix; + this.suffix = suffix == null ? "" : suffix; + this.multiToOnePattern=multiToOnePattern; + this.multiToOneRulesPattern = multiToOneRulesPattern; + } + public String convert(String tableName) { + if(isMultiToOneTable(tableName)){ + return getMultiToOneTargetByTableName(tableName); + } Review Comment: Is it possible to directly determine whether multiToOneRulesPattern is empty? If not, execute getMultiToOneTargetByTableName. -- 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...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org