From 5bb51786a1dc853b263e4665981ef0728f28436f Mon Sep 17 00:00:00 2001 From: dongmen <20351731+asddongmen@users.noreply.github.com> Date: Wed, 31 Jan 2024 15:54:25 +0800 Subject: [PATCH] filter: add more event types to ClassifyEvent (#772) ref pingcap/tidb-tools#767 --- pkg/binlog-filter/filter.go | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/pkg/binlog-filter/filter.go b/pkg/binlog-filter/filter.go index 567bd6d6..ee7eaff1 100644 --- a/pkg/binlog-filter/filter.go +++ b/pkg/binlog-filter/filter.go @@ -169,7 +169,22 @@ func ClassifyEvent(event EventType) (EventType, error) { TruncateTable, DropSchema, DropTablePartition, - TruncateTablePartition: + TruncateTablePartition, + + ModifySchemaCharsetAndCollate, + ModifyTableCharsetAndCollate, + ModifyTableComment, + RecoverTable, + AlterTablePartitioning, + RemovePartitioning, + AddColumn, + SetDefaultValue, + RebaseAutoID, + AddPrimaryKey, + AlterIndexVisibility, + AlterTTLInfo, + AlterTTLRemove, + MultiSchemaChange: return incompatibleDDL, nil default: return NullEvent, errors.NotValidf("event type %s", event)