Skip to content

Commit

Permalink
Add mongodb flattening settings to example config (#324)
Browse files Browse the repository at this point in the history
* Add mongodb flattening settings to example config

* Add mongodb flattening settings to example config

* Add mongodb flattening settings to example config

* Revert "Add mongodb flattening settings to example config"

This reverts commit 533998e.
  • Loading branch information
ismailsimsek committed May 20, 2024
1 parent 37c8e6f commit ca67cf4
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,18 @@ debezium.transforms.unwrap.add.fields=op,table,source.ts_ms,db
debezium.transforms.unwrap.delete.handling.mode=rewrite
debezium.transforms.unwrap.drop.tombstones=true

## mongodb event flattening
# debezium.transforms.unwrap.type=io.debezium.connector.mongodb.transforms.ExtractNewDocumentState
# debezium.transforms=unwrap,renamekeyfield
## IMPORTANT FIX: rename key filed name "id"=>"_id" to align it with payload key field name.
# debezium.transforms.renamekeyfield.type=org.apache.kafka.connect.transforms.ReplaceField$Key
# debezium.transforms.renamekeyfield.renames=id:_id
## For mongodb and debezium 2.7.X onward only
## https://debezium.io/documentation/reference/2.7/transformations/mongodb-event-flattening.html#mongodb-extract-new-record-state-delete-tombstone-handling-mode-rewrite-with-id
# delete.tombstone.handling.mode=rewrite
## For the delete events this will export key field (`_id`) to payload
# delete.tombstone.handling.mode.rewrite-with-id=true

# ############ SET LOG LEVELS ############
quarkus.log.level=INFO
quarkus.log.console.json=false
Expand Down

0 comments on commit ca67cf4

Please sign in to comment.