flink-cdc
flink-cdc copied to clipboard
[oracle-cdc] Fix read one record in the incremental snapshot
Fix bug: #1886
In the snapshot, record.key()
is null, so it will overwrite the previous record. So we can to add record without primary key into list.
if (!reachChangeLogStart) {
if (record.key() == null) {
snapshotRecordsWithoutKey.add(record);
} else {
outputBuffer.put((Struct) record.key(), record);
}
}
Maybe this is a new feature that make oracle cdc support the tables without primary keys.
Thanks @e-mhui for the great work! Before this PR could be merged, could you please rebase it with latest master
branch?
cc @ruanhang1993
This pull request has been automatically marked as stale because it has not had recent activity for 60 days. It will be closed in 30 days if no further activity occurs.