thexiay commented on code in PR #4065:
URL: https://github.com/apache/incubator-inlong/pull/4065#discussion_r865892561


##########
inlong-sort/sort-formats/format-json/src/main/java/org/apache/inlong/sort/formats/json/canal/CanalJsonEnhancedDeserializationSchema.java:
##########
@@ -224,6 +236,11 @@ public void deserialize(@Nullable byte[] message, 
Collector<RowData> out) throws
             }
             final GenericRowData row = (GenericRowData) 
jsonDeserializer.convertToRowData(root);
             String type = row.getString(2).toString(); // "type" field
+            // only not appendMode type field is valid
+            if (appendMode) {

Review Comment:
   avoid add option in different source format. Import hive sink changelog 
data, regard upsert and delete data as insert data.



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