JNSimba commented on code in PR #208:
URL: 
https://github.com/apache/doris-flink-connector/pull/208#discussion_r1361546046


##########
flink-doris-connector/src/main/java/org/apache/doris/flink/tools/cdc/DatabaseSync.java:
##########
@@ -108,15 +116,23 @@ public void build() throws Exception {
         List<String> dorisTables = new ArrayList<>();
         for (SourceSchema schema : schemaList) {
             syncTables.add(schema.getTableName());
-            String dorisTable = converter.convert(schema.getTableName());
+            // 转换之前得判断是否是多表合一,多表合一不进行转换
+            String dorisTable="";
+            if(converter.isMultiToOneTable(schema.getTableName())){
+                dorisTable = 
converter.getMultiToOneTargetByTableName(schema.getTableName());
+            }else{
+                dorisTable = converter.convert(schema.getTableName());
+            }

Review Comment:
   Can it be included in a method and handle the specific logic in the convert 
method?



-- 
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

Reply via email to