Skip to content

Commit

Permalink
filter: add more event types to ClassifyEvent (#772)
Browse files Browse the repository at this point in the history
ref #767
  • Loading branch information
asddongmen authored Jan 31, 2024
1 parent 5d0e923 commit 5bb5178
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion pkg/binlog-filter/filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5bb5178

Please sign in to comment.