pingcap / pingcap/tidb

let plan replayer sql return proper information even when it meets error

Open
#42,495 0 comments 0 reactions 0 assignees View on GitHub
sig/planner type/enhancement
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Enhancement
For now, if the plan replayer meets an error, it would return an error. For example:
```sql
create table t(a int primary key, b int);
insert into t select 1,1;
plan replayer dump explain analyze insert into t select 1,1;
```
```
ERROR 1062 (23000): Duplicate entry '1' for key 't.PRIMARY'
```
The better behavior is to always return the plan replayer dump file, and record the error properly in that.

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.