You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please answer the following questions before submitting your issue. Thanks!
Describe what you find is inappropriate or missing in the existing docs.
In partition can't exchange when table schema is same tidb#50906 there is an issue for EXCHANGE PARTITION, when the table structures looks the same, but internally they have different index ids.
Describe your suggestion or addition.
Add a paragraph about EXCHANGE PARTITION and table structures, including the workaround CREATE TABLE tnp LIKE partitioned_table; alter table tnp remove partitioning; to get exact the same indexes etc.
Seems like this is a difference from MySQL, where the indexes just needs to be in the same order and identically defined, while for TiDB we need to have the same index id for each index as well, since the index entries are encoded with the index id.
Change Request
Please answer the following questions before submitting your issue. Thanks!
Describe what you find is inappropriate or missing in the existing docs.
In partition can't exchange when table schema is same tidb#50906 there is an issue for EXCHANGE PARTITION, when the table structures looks the same, but internally they have different index ids.
Describe your suggestion or addition.
Add a paragraph about EXCHANGE PARTITION and table structures, including the workaround
CREATE TABLE tnp LIKE partitioned_table; alter table tnp remove partitioning;
to get exact the same indexes etc.Provide some reference materials (such as documents and websites) if you could.
https://docs.pingcap.com/tidb/stable/partitioned-table#partition-management
The text was updated successfully, but these errors were encountered: