gong commented on code in PR #7712:
URL: https://github.com/apache/inlong/pull/7712#discussion_r1150122829


##########
inlong-manager/manager-pojo/src/main/java/org/apache/inlong/manager/pojo/sort/util/LoadNodeUtils.java:
##########
@@ -546,6 +546,22 @@ public static SqlServerLoadNode 
createLoadNode(SQLServerSink sqlServerSink, List
      */
     public static ElasticsearchLoadNode createLoadNode(ElasticsearchSink 
elasticsearchSink,
             List<FieldInfo> fieldInfos, List<FieldRelation> fieldRelations, 
Map<String, String> properties) {
+        Format format = null;
+        if (elasticsearchSink.getSinkMultipleEnable() != null && 
elasticsearchSink.getSinkMultipleEnable()
+                && StringUtils.isNotBlank(
+                elasticsearchSink.getSinkMultipleFormat())) {
+            DataTypeEnum dataType = 
DataTypeEnum.forType(elasticsearchSink.getSinkMultipleFormat());
+            switch (dataType) {
+                case CANAL:
+                    format = new CanalJsonFormat();
+                    break;
+                case DEBEZIUM_JSON:
+                    format = new DebeziumJsonFormat();
+                    break;
+                default:
+                    throw new 
IllegalArgumentException(String.format("Unsupported dataType=%s for doris", 
dataType));

Review Comment:
   doris?



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to