From a7d4e6f7c3a1af4799bee2da42580455503806f9 Mon Sep 17 00:00:00 2001 From: Ti Chi Robot Date: Thu, 31 Oct 2024 13:34:51 +0800 Subject: [PATCH] cdc: add warn for event filter (#18865) (#18953) --- ticdc/ticdc-changefeed-config.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ticdc/ticdc-changefeed-config.md b/ticdc/ticdc-changefeed-config.md index 37b957dc22f0..c102689e93f0 100644 --- a/ticdc/ticdc-changefeed-config.md +++ b/ticdc/ticdc-changefeed-config.md @@ -104,7 +104,7 @@ rules = ['*.*', '!test.*'] # 第二个事件过滤器规则 # [[filter.event-filters]] # matcher = ["test.fruit"] # 该事件过滤器只应用于 test.fruit 表 -# ignore-event = ["drop table", "delete"] # 忽略 drop table 的 DDL 事件和 delete 类型的 DML 事件 +# ignore-event = ["drop table", "delete"] # 忽略 drop table 的 DDL 事件和 delete 类型的 DML 事件。需要注意的是,在更新 TiDB 中聚簇索引的列值时,TiCDC 会将一个 UPDATE 事件拆分成为 DELETE 和 INSERT 事件,TiCDC 无法将该类事件识别为 UPDATE 事件,因此无法正确地进行过滤。 # ignore-sql = ["^drop table", "alter table"] # 忽略以 drop table 开头的,或者包含 alter table 的 DDL 语句 # ignore-insert-value-expr = "price > 1000 and origin = 'no where'" # 忽略包含 price > 1000 和 origin = 'no where' 条件的 insert DML