pingcap / pingcap/tidb

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

Open
#60,629 9 comments 0 reactions 2 assignees Claimed by @chiatzenw-cur View on GitHub
good first issue type/enhancement
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Enhancement
Test:
```mysql
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

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.