Skip to content

Commit

Permalink
[Fix][Connector-V2][CDC] SeaTunnelRowDebeziumDeserializationConverter…
Browse files Browse the repository at this point in the history
…s NPE (#7119)
  • Loading branch information
Asura7969 authored Jul 8, 2024
1 parent adafd80 commit ae81879
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
SeaTunnelRow before = extractBeforeRow(converters, record, messageStruct, valueSchema);
before.setRowKind(RowKind.UPDATE_BEFORE);
before.setTableId(tableId);
Expand All @@ -194,6 +194,8 @@ private void deserializeDataChangeRecord(SourceRecord record, Collector<SeaTunne
after.setRowKind(RowKind.UPDATE_AFTER);
after.setTableId(tableId);
collector.collect(after);
} else {
log.warn("Received {} operation, skip", operation);
}
}

Expand Down

0 comments on commit ae81879

Please sign in to comment.