pingcap/tidb

Extend 'Table has no partition for value ...' error message to include the value

Open

#60.629 aperta il 17 apr 2025

Vedi su GitHub
 (9 commenti) (0 reazioni) (2 assegnatari)Go (6186 fork)batch import
good first issuetype/enhancement

Metriche repository

Star
 (40.090 star)
Metriche merge PR
 (Merge medio 14g 4h) (346 PR mergiate in 30 g)

Descrizione

Enhancement

Test:

tidb> create table t (id varchar(255)) partition by list columns (id) (partition p0 values in ('ok'));
Query OK, 0 rows affected (0.03 sec)

tidb> insert into t values ('ok'),('notok');
ERROR 1526 (HY000): Table has no partition for value from column_list

It would be more beneficial if the error was:

ERROR 1526 (HY000): Table has no partition for value 'notok'

instead

Guida contributor