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


##########
inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/sink/StreamSinkServiceImpl.java:
##########
@@ -700,6 +703,39 @@ public Boolean updateAfterApprove(List<SinkApproveDTO> 
approveList, String opera
         return true;
     }
 
+    @Override
+    public boolean addFields(StreamSinkEntity sinkEntity, List<SinkField> 
sinkFieldList) {
+        Set<String> existFields = 
sinkFieldMapper.selectBySinkId(sinkEntity.getId()).stream()
+                
.map(StreamSinkFieldEntity::getFieldName).collect(Collectors.toSet());
+
+        LOGGER.debug("begin to save sink fields={}", sinkFieldList);
+        if (CollectionUtils.isEmpty(sinkFieldList)) {
+            return true;

Review Comment:
   The log above shows whether the field is empty.



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