Can partition a table without its unique keys, leading to duplicate primary keys #57893
Labels
affects-7.5
This bug affects the 7.5.x(LTS) versions.
duplicate
Issues or pull requests already exists.
severity/major
sig/sql-infra
SIG: SQL Infra
type/bug
The issue is confirmed as a bug.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
When using PARTITION BY, it allows partitioning on a columns that is not includind in the primary key, leading to not enforcing primary key uniqueness between partitions.
2. What did you expect to see? (Required)
ALTER TABLE t PARTITION BY RANGE (c) ... failing
3. What did you see instead (Required)
It succeeded, leading to allowing duplicate keys!
4. What is your TiDB version? (Required)
The text was updated successfully, but these errors were encountered: