pingcap / pingcap/tidb

issue of multi-schema change on same column

Open
#38,897 2 comments 0 reactions 0 assignees View on GitHub
component/ddl type/compatibility
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Bug Report

Please answer these questions before submitting your issue. Thanks!

### 1. Minimal reproduce step (Required)

```sql
create table t (a int, b int);
alter table t change b bb int, add index idx(bb);
```

### 2. What did you expect to see? (Required)

execute successful:
```sql
mysql>create table t (a int, b int);
Query OK, 0 rows affected
mysql>alter table t change b bb int, add index idx(bb);
Query OK, 0 rows affected

```

### 3. What did you see instead (Required)

execute failed:
```sql
mysql>create table t (a int, b int);
Query OK, 0 rows affected
mysql>alter table t change b bb int, add index idx(bb);
(1072, 'column does not exist: bb')
```

### 4. What is your TiDB version? (Required)

```sql
select tidb_version()\G
***************************[ 1. row ]***************************
tidb_version() | Release Version: v6.4.0-alpha-241-gde568beb4a
Edition: Community
Git Commit Hash: de568beb4aac3989053f5c45f4614f8297792d52
Git Branch: master
UTC Build Time: 2022-11-04 08:19:05
GoVersion: go1.19.3
Race Enabled: false
TiKV Min Version: 6.2.0-alpha
Check Table Before Drop: false
Store: unistore
```

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.