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 fde5eee commit e5f1718
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import java.util.*;

import static io.debezium.server.iceberg.IcebergChangeConsumer.*;
import static io.debezium.server.iceberg.tableoperator.IcebergTableOperator.cdcOpField;

/**
* Converts iceberg json event to Iceberg GenericRecord. Extracts event schema and key fields. Converts event schema to Iceberg Schema.
Expand All @@ -41,7 +42,6 @@ public class RecordConverter {
protected static final Logger LOGGER = LoggerFactory.getLogger(RecordConverter.class);
public static final List<String> TS_MS_FIELDS = List.of("__ts_ms", "__source_ts_ms");
static final boolean eventsAreUnwrapped = IcebergUtil.configIncludesUnwrapSmt();
protected static final String cdcOpField = "__op";
protected final String destination;
protected final byte[] valueData;
protected final byte[] keyData;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class IcebergTableOperator {

static final ImmutableMap<Operation, Integer> CDC_OPERATION_PRIORITY = ImmutableMap.of(Operation.INSERT, 1, Operation.READ, 2, Operation.UPDATE, 3, Operation.DELETE, 4);
private static final Logger LOGGER = LoggerFactory.getLogger(IcebergTableOperator.class);
protected static final String cdcOpField = "__op";
public static final String cdcOpField = "__op";
@ConfigProperty(name = "debezium.sink.iceberg.upsert-dedup-column", defaultValue = "__source_ts_ms")
String cdcSourceTsMsField;
@ConfigProperty(name = "debezium.sink.iceberg.allow-field-addition", defaultValue = "true")
Expand Down

0 comments on commit e5f1718

Please sign in to comment.