pingcap / pingcap/tidb

Require same constraints on tables for EXCHANGE PARTITION

Open
#56,754 1 comment 0 reactions 0 assignees View on GitHub
type/enhancement
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Enhancement

Currently EXCHANGE PARTITION allows for different CONSTRAINTS on the partitioned table and the non-partitioned table and having some extra code to check constraints during the DDL.

It would be easier if we only allowed EXCHANGE PARTITION to work with tables that have the same CONSTRAINTS, just like it needs to have the same columns, indexes and other table attributes.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.