pingcap/tidb

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

Open

#60,629 创建于 2025年4月17日

在 GitHub 查看
 (9 评论) (0 反应) (2 负责人)Go (6,186 fork)batch import
good first issuetype/enhancement

仓库指标

Star
 (40,090 star)
PR 合并指标
 (平均合并 14天 4小时) (30 天内合并 346 个 PR)

描述

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

贡献者指南