Skip to content

Commit

Permalink
[Fix][Connector-V2][CDC] SeaTunnelRowDebeziumDeserializationConverter…
Browse files Browse the repository at this point in the history
…s NPE (apache#7119)
  • Loading branch information
Asura7969 authored and chaorongzhi committed Aug 21, 2024
1 parent 67c1d81 commit f4f8b14
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 f4f8b14

Please sign in to comment.