You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by "chestnut-c (via GitHub)" <gi...@apache.org> on 2023/06/09 06:54:27 UTC
[GitHub] [inlong] chestnut-c opened a new pull request, #8203: [INLONG-8202][Manager] Optimize Provider code to extract public parseFormat class
chestnut-c opened a new pull request, #8203:
URL: https://github.com/apache/inlong/pull/8203
[INLONG-8202][Manager] Optimize Provider code to extract public parseFormat class
- Fixes #8202
### Motivation
Optimize Provider code to extract public parseFormat class
--
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-unsubscribe@inlong.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [inlong] gong merged pull request #8203: [INLONG-8202][Manager] Extract public parseFormat method to optimize NodeProvider
Posted by "gong (via GitHub)" <gi...@apache.org>.
gong merged PR #8203:
URL: https://github.com/apache/inlong/pull/8203
--
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-unsubscribe@inlong.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [inlong] chestnut-c commented on a diff in pull request #8203: [INLONG-8202][Manager] Extract public parseFormat method to optimize NodeProvider
Posted by "chestnut-c (via GitHub)" <gi...@apache.org>.
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-unsubscribe@inlong.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [inlong] chestnut-c commented on a diff in pull request #8203: [INLONG-8202][Manager] Extract public parseFormat method to optimize NodeProvider
Posted by "chestnut-c (via GitHub)" <gi...@apache.org>.
chestnut-c commented on code in PR #8203:
URL: https://github.com/apache/inlong/pull/8203#discussion_r1223973749
##########
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:
> Integer
partitionNum is defined as String in KafkaSink, theoretically it should be defined as Integer, next modification
--
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-unsubscribe@inlong.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [inlong] fuweng11 commented on a diff in pull request #8203: [INLONG-8202][Manager] Extract public parseFormat method to optimize NodeProvider
Posted by "fuweng11 (via GitHub)" <gi...@apache.org>.
fuweng11 commented on code in PR #8203:
URL: https://github.com/apache/inlong/pull/8203#discussion_r1223960767
##########
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`?
--
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-unsubscribe@inlong.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org