【 使用环境 】生产环境
【 OB or 其他组件 】
【 使用版本 】3.2.3
【问题描述】OceanBase 为啥不能在线ddl将null 字段改成not null的,原因是什么
【复现路径】
mysql> alter table test1
modify column task_sub_type
tinyint(4) not null default 1;
ERROR 1146 (42S02): Table ‘test.test1’ doesn’t exist
mysql> create table test2(id int primary key ,name
varchar(100) null );
Query OK, 0 rows affected (0.12 sec)
mysql> alter table test2 modify column name varchar(100) not null default ‘cc’;
ERROR 1138 (22004): Invalid use of NULL value
【问题现象及影响】
【附件】