--
You received this message because you are subscribed to the Google Groups "debezium" group.
To unsubscribe from this group and stop receiving emails from it, send an email to debezium+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/debezium/d6abe15d-0182-48ce-9598-8a9eed5bcaaen%40googlegroups.com.
Hey Chris, in response to 'If you observe anything different, we'd need to understand your configuration & sequence of events.' we can review what I am seeing. Goal: We want to exclude cdc data for ALL tables, but include DDL for ALL tables (snapshot and subsequent) into the schema change topic. Noteworthy configs that are shared across all scenarios... "schema.history.internal.store.only.captured.tables.ddl":
"false", 'topic.creation.groups': 'schema_topic', 'topic.creation.schema_topic.include': '__schema_only_debezium_schema_change_data_factory_dev' 'topic.creation.schema_topic.replication.factor': -1, 'topic.creation.schema_topic.partitions': 1, 'topic.creation.schema_topic.include': '__schema_only_debezium_schema_change_data_factory_dev', 'topic.creation.schema_topic.cleanup.policy': 'delete', 'topic.creation.schema_topic.retention.bytes': -1, 'topic.creation.schema_topic.compression.type': 'lz4', 'transforms.AddPrefix.regex': 'data_factory_dev-debezium-schemaonly-202407242155' 'transforms.AddPrefix.replacement': '__schema_only_debezium_schema_change_data_factory_dev' 'schema.history.internal.kafka.topic': '__debezium_internal_schema_history_data_factory_dev-debezium-schemaonly-202407242155' Scenario 1: 'table.exclude.list':'.*' 1. Create connector 2. See 34 messages from snapshot in __schema_only_debezium_schema_change_data_factory_dev topic 3. Alter schema of t1 4. I see a new Alter message added to __schema_only_debezium_schema_change_data_factory_dev topic Scenario 2: 'database.exclude.list':'.*' 1. Create connector 2. See 13 messages from snapshot in __schema_only_debezium_schema_change_data_factory_dev topic 3. Alter schema of t1 4. I DO NOT see a new message added to __schema_only_debezium_schema_change_data_factory_dev topic Scenario 3: 'database.include.list':'a^' #impossible regex 1. Create connector 2. See 13 messages from snapshot in __schema_only_debezium_schema_change_data_factory_dev topic 3. Alter schema of t1 4. I DO NOT see a new message added to __schema_only_debezium_schema_change_data_factory_dev topic Scenario 4: 'table.include.list':'a^' #impossible regex 1. Create connector 2. See 34 messages from snapshot in __schema_only_debezium_schema_change_data_factory_dev topic 3. Alter schema of t1 4. I see a new Alter message added to __schema_only_debezium_schema_change_data_factory_dev topic Conclusion: It seems that it's not exclude vs include , but database vs table that makes the difference here. The database exclude/include will ignore all schema changes after the snapshot, in addition I see in the schema change topic that there are no DROP TABLE, DROP DB, USE DB, CREATE DB statements in the scheme change topic with database.exclude/include is used, yet those do appear in the table.include/exclude scenarios. Why are there just CREATE TABLE statements generated for the database.exclude/include scenario? We are unblocked as we can use scenario 1 or scenario 4, but I would just like to understand why this is the case. In the documentation the wording for table vs database exclusion and inclusion is nearly the same so I didn't predict them to have a big difference, I just assumed it all boiled down to a set of tables to replicate. As always, our team appreciates your diligence in being so responsive here, Thanks |
You received this message because you are subscribed to a topic in the Google Groups "debezium" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/debezium/jvi40xkRcLQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to debezium+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/debezium/213a6414-d5c9-4249-8d9c-aa5d81e87a15%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/debezium/CAD0Ttfcdwp8DcsGCpC0hoLpKgi%3Dj7gKd8iiwzf4%2BVVabRT%2BNMw%40mail.gmail.com.