Skip to content

Commit

Permalink
Use RecordWrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
ismailsimsek committed Oct 5, 2024
1 parent c994488 commit 58fa00c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ private void addToTablePerSchema(Table icebergTable, List<RecordConverter> event
BaseTaskWriter<Record> writer = writerFactory.create(icebergTable);
try (writer) {
for (RecordConverter e : events) {
final RecordWrapper record = e.convert(tableSchema, cdcOpField);
final RecordWrapper record = (upsert && !tableSchema.identifierFieldIds().isEmpty()) ? e.convert(tableSchema, cdcOpField) : e.convert(tableSchema);
writer.write(record);
}

Expand Down

0 comments on commit 58fa00c

Please sign in to comment.