You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by "fuweng11 (via GitHub)" <gi...@apache.org> on 2023/05/29 09:23:27 UTC

[GitHub] [inlong] fuweng11 commented on a diff in pull request #8115: [INLONG-8114][Manager] Fix the NEP that may appear when building Properties.

fuweng11 commented on code in PR #8115:
URL: https://github.com/apache/inlong/pull/8115#discussion_r1209117077


##########
inlong-manager/manager-pojo/src/main/java/org/apache/inlong/manager/pojo/sort/util/LoadNodeUtils.java:
##########
@@ -117,6 +118,7 @@ public static LoadNode createLoadNode(StreamSink streamSink, Map<String, StreamF
                 .collect(Collectors.toList());
         List<FieldRelation> fieldRelations = parseSinkFields(streamSink.getSinkFieldList(), constantFieldMap);
         Map<String, String> properties = streamSink.getProperties().entrySet().stream()
+                .filter(v -> Objects.nonNull(v.getValue()))

Review Comment:
   Suggest use `StringUtils.isNotBank()`.



##########
inlong-manager/manager-pojo/src/main/java/org/apache/inlong/manager/pojo/sort/util/ExtractNodeUtils.java:
##########
@@ -563,6 +564,7 @@ private static List<FieldInfo> parseFieldInfos(List<StreamField> streamFields, S
      */
     private static Map<String, String> parseProperties(Map<String, Object> properties) {
         return properties.entrySet().stream()
+                .filter(v -> Objects.nonNull(v.getValue()))

Review Comment:
   Suggest use `StringUtils.isNotBank()`.



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