pingcap / pingcap/tidb

Decimal type fields cannot be resized or precision improved within the partition table

Open
#54,441 4 comments 0 reactions 0 assignees View on GitHub
component/ddl report/community type/feature-request
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)
create table test(
id int not null primary key auto_increment,
cost decimal(10,0) default 0 not null
)engine = innodb
partition by hash(id)
PARTITIONS 4 ;

alter table test modify column cost decimal(20,4) default 0 not null;

### 2. What did you expect to see? (Required)
sql error : Unsupported modify column: table is partition table

### 3. What did you see instead (Required)
Change fields to decimal(20,4)

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

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.