EXCHANGE PARTITION issue: report error between list partition and non-empty table #47154
Labels
affects-6.5
found/gs
found by gs
may-affects-5.3
This bug maybe affects 5.3.x versions.
may-affects-5.4
This bug maybe affects 5.4.x versions.
may-affects-6.1
may-affects-7.1
severity/major
sig/sql-infra
SIG: SQL Infra
type/bug
The issue is confirmed as a bug.
Bug Report
An error is reported when exchanging partitions between the list partition table and a non-empty table, and it is incompatible with MySQL behavior
1. Minimal reproduce step (Required)
List partition table:
2. What did you expect to see? (Required)
Partition exchange successful
3. What did you see instead (Required)
TiDB:
mysql> ALTER TABLE t1 EXCHANGE PARTITION P20220131 WITH TABLE t2;
ERROR 1737 (HY000): Found a row that does not match the partition
MySQL:
4. What is your TiDB version? (Required)
v6.5.1
The text was updated successfully, but these errors were encountered: