When using alter table to add or delete indexes, an error occurs when an alter contains multiple drops or adds, and it can only be split into multiple alters.
Version: tidb5.4.0
alter table vfs_directory drop index idx_root_id, drop index idx_parent_id, algorithm=instant
8200 - Unsupported multi schema change
To improve efficiency, please provide the following information. Clear problem descriptions can be resolved faster:
【TiDB Usage Environment】
【Overview】 Scenario + Problem Overview
【Background】 What operations have been done
【Phenomenon】 Business and database phenomena
【Problem】 The current problem encountered
【Business Impact】
【TiDB Version】
【Application Software and Version】
【Attachments】 Relevant logs and configuration information
Corresponding module logs (including logs 1 hour before and after the problem)
If the question is related to performance optimization or fault troubleshooting, please download the script and run it. Please select all and copy and paste the terminal output results for upload.
The ALTER TABLE syntax in TiDB has the following limitations:
Multiple changes in a single ALTER TABLE statement are not supported.
Changes of the Reorg-Data type on primary key columns are not supported.
Column type changes on partitioned tables are not supported.
Column type changes on generated columns are not supported.
Changes of certain data types (e.g., some time types, Bit, Set, Enum, JSON, etc.) are not supported due to compatibility issues between the CAST function in TiDB and MySQL.
Spatial data types are not supported.
ALTER TABLE t CACHE | NOCACHE is not standard MySQL syntax but a TiDB extension feature. Refer to Cached Tables.