gong commented on code in PR #7486:
URL: https://github.com/apache/inlong/pull/7486#discussion_r1122531965


##########
inlong-sort/sort-common/src/main/java/org/apache/inlong/sort/protocol/node/extract/KafkaExtractNode.java:
##########
@@ -166,6 +169,21 @@ public Map<String, String> tableOptions() {
         return options;
     }
 
+    /**
+     * true is upsert kafka connector
+     * false is kafka connector
+     * @return connector option is
+     */
+    private boolean isUpsertKafkaConnector(Format format, boolean 
hasPrimaryKey) {
+        if (format instanceof JsonFormat && hasPrimaryKey) {

Review Comment:
   > Maybe it is better implement by 'return hasPrimaryKey && (format instansof 
JsonFormat || format instansof ...);'
   
   It is too long. It could add other format in th future.



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