Reputation: 1832
My tables:
By default I want information to go to topic user_service.$tableName
but for specific tables, I want the information in different tables.
Expected Output
I have the configuration that is working for one table like notifications but not sure how I can adjust if for multiple tables
Existing Config:
"transforms": "unwrap,Reroute",
"transforms.Reroute.type": "io.debezium.transforms.ByLogicalTableRouter",
"transforms.Reroute.topic.regex": "(.*)notifications",
"transforms.Reroute.topic.replacement": "notificaton_service.notifications",
Upvotes: 1
Views: 480
Reputation: 1832
Got it working with
"transforms": "unwrap,Reroute",
"transforms.Reroute.type": "io.debezium.transforms.ByLogicalTableRouter",
"transforms.Reroute.topic.regex": "(.*)(notifications|alerts)",
"transforms.Reroute.topic.replacement": "$2_service.$2",
Upvotes: 1