castorqin commented on code in PR #9029:
URL: https://github.com/apache/inlong/pull/9029#discussion_r1349889748


##########
inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/sink/AbstractSinkOperator.java:
##########
@@ -218,14 +219,19 @@ public void deleteOpt(StreamSinkEntity entity, String 
operator) {
     }
 
     @Override
-    public Map<String, String> parse2IdParams(StreamSinkEntity streamSink, 
List<String> fields) {
+    public Map<String, String> parse2IdParams(StreamSinkEntity streamSink, 
List<String> fields,
+            DataNodeInfo dataNodeInfo) {
         Map<String, String> param;
         try {
-            param = JsonUtils.parseObject(streamSink.getExtParams(), 
HashMap.class);
-            // put group and stream info
-            assert param != null;
+            HashMap<String, Object> streamInfoMap = 
JsonUtils.parseObject(streamSink.getExtParams(), HashMap.class);
+            param = new HashMap<>();
+            assert streamInfoMap != null;
+            for (String key : streamInfoMap.keySet()) {
+                param.put(key, String.valueOf(streamInfoMap.get(key)));
+            }
             param.put(KEY_GROUP_ID, streamSink.getInlongGroupId());
             param.put(KEY_STREAM_ID, streamSink.getInlongStreamId());
+            // put group and stream info

Review Comment:
   done



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