Open tonyhu214 opened 2 months ago
TKS!Based on your information, I took a closer look at the code for the needChangeColumnData function. https://github.com/pingcap/tidb/blob/d8098b970893c850cc318727d9dc336d0a677f35/pkg/ddl/column.go#L386-L402 How do I go about understanding how the decimal type is stored in TiDB?Is there any code that can be viewed?
Of course. MySQL supports changes to the decimal type of partitioned tables. I hope Tidb can also support it.
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 +