healchow commented on code in PR #6202:
URL: https://github.com/apache/inlong/pull/6202#discussion_r998474289
##########
inlong-manager/manager-pojo/src/main/java/org/apache/inlong/manager/pojo/sort/util/LoadNodeUtils.java:
##########
@@ -167,24 +170,64 @@ public static KafkaLoadNode createLoadNode(KafkaSink
kafkaSink, List<FieldInfo>
case DEBEZIUM_JSON:
format = new DebeziumJsonFormat();
break;
+ case RAW:
+ format = new RawFormat();
+ break;
default:
throw new IllegalArgumentException(String.format("Unsupported
dataType=%s for Kafka", dataType));
}
+ DataTypeEnum innerDataType =
DataTypeEnum.forName(kafkaSink.getInnerFormat());
+ Format innerFormat = null;
+ String sinkPartitioner = null;
+ if (dataType == DataTypeEnum.RAW) {
+ switch (innerDataType) {
+ case DEBEZIUM_JSON:
+ innerFormat = new DebeziumJsonFormat();
+ break;
+ case CANAL:
+ innerFormat = new CanalJsonFormat();
+ break;
Review Comment:
Please add a default statement for `switch`.
--
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]