Special Handling of DM DDLs
When TiDB Data Migration (DM) migrates data, it parses the DDL statements and handles them according to the statement type and the current migration stage.
Skip DDL statements
The following statements are not supported by DM, so DM skips them directly after parsing.
|skip all flush sqls|
Rewrite DDL statements
The following statements are rewritten before being replicated to the downstream.
|Original statement||Rewritten statement|
Shard merge migration tasks
When DM merges and migrates tables in pessimistic or optimistic mode, the behavior of DDL replication is different from that in other scenarios. For details, refer to Pessimistic Mode and Optimistic Mode.
The Online DDL feature also handles DDL events in a special way. For details, refer to Migrate from Databases that Use GH-ost/PT-osc.
Was this page helpful?