chestnut-c commented on code in PR #8203:
URL: https://github.com/apache/inlong/pull/8203#discussion_r1223964864


##########
inlong-manager/manager-pojo/src/main/java/org/apache/inlong/manager/pojo/sort/node/provider/KafkaProvider.java:
##########
@@ -113,11 +98,61 @@ public LoadNode createLoadNode(StreamNode nodeInfo, 
Map<String, StreamField> con
         Map<String, String> properties = 
parseProperties(kafkaSink.getProperties());
         List<FieldInfo> fieldInfos = 
parseSinkFieldInfos(kafkaSink.getSinkFieldList(), kafkaSink.getSinkName());
         List<FieldRelation> fieldRelations = 
parseSinkFields(kafkaSink.getSinkFieldList(), constantFieldMap);
-        Integer sinkParallelism = null;
-        if (StringUtils.isNotEmpty(kafkaSink.getPartitionNum())) {
-            sinkParallelism = Integer.parseInt(kafkaSink.getPartitionNum());
+
+        String partitionNum = kafkaSink.getPartitionNum();

Review Comment:
   
   
   
   > `partitionNum` maybe `Integer`?
   
   
   partitionNum is defined in KafkaSink as String.



-- 
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...@inlong.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to