Asura7969 commented on code in PR #7119:
URL: https://github.com/apache/seatunnel/pull/7119#discussion_r1667554628


##########
seatunnel-connectors-v2/connector-cdc/connector-cdc-base/src/main/java/org/apache/seatunnel/connectors/cdc/debezium/row/SeaTunnelRowDebeziumDeserializeSchema.java:
##########
@@ -184,7 +184,7 @@ private void deserializeDataChangeRecord(SourceRecord 
record, Collector<SeaTunne
             delete.setRowKind(RowKind.DELETE);
             delete.setTableId(tableId);
             collector.collect(delete);
-        } else {
+        } else if (operation == Envelope.Operation.UPDATE) {

Review Comment:
   
[TRUNCATE](https://debezium.io/documentation/reference/stable/connectors/postgresql.html#postgresql-truncate-events)
 or 
[MESSAGE](https://debezium.io/documentation/reference/stable/connectors/postgresql.html#postgresql-message-events)
   Can we ignore these two operations?  then like:
   
   ```java
    else {
         log.warn("Received {} operation, skip", operation);
     }
   ```



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