Skip to content

Commit

Permalink
Add mongodb flattening settings to example config
Browse files Browse the repository at this point in the history
  • Loading branch information
ismailsimsek committed May 20, 2024
1 parent a71b6fe commit 533998e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ public Map<String, String> getConfigOverrides() {
config.put("%mongodb.debezium.source.collection.include.list", "inventory.products");
// IMPORTANT !!! FIX MongoDbConnector KEY FIELD NAME "id"=>"_id" !!!
config.put("%mongodb.debezium.transforms", "unwrap,renamekeyfield");
config.put("%mongodb.delete.tombstone.handling.mode", "rewrite");
config.put("%mongodb.delete.tombstone.handling.mode.rewrite-with-id", "true");
config.put("%mongodb.debezium.transforms.renamekeyfield.type",
"org.apache.kafka.connect.transforms.ReplaceField$Key");
config.put("%mongodb.debezium.transforms.renamekeyfield.renames", "id:_id");
Expand Down

0 comments on commit 533998e

Please sign in to comment.