Open MikhailGolubtsov94 opened 8 months ago
See: https://github.com/tabular-io/iceberg-kafka-connect/pull/204
Either run it as is (will give you op, before, after) unlike the Debezium supplied mongo transform. You can write that directly or plug it into the DebeziumTransform in sequence.
The type of
"after"/"before"
field of the MongoDB source connector produced records is"string"
(Debezium documentation). However, in the source code ofio.tabular.iceberg.connect.transforms.DebeziumTransform
it is assumed that type of"after"/"before"
field is"struct"
(source code). It causes a corresponding error for mongo cdc debezium records:Possible solution: Use another record format for mongodb records, i.e. keep metadata and
"after"
field on the same hierarchy level.