hww123 opened a new issue #3634:
URL: https://github.com/apache/incubator-doris/issues/3634


   doris version:12.8
   
   **case**:
   ```
   CREATE TABLE `test1` (
     `field1` varchar(500) NULL COMMENT "",
     `field2` int(11) NULL COMMENT "0",
     `field3` bigint(20) NULL COMMENT "0"
   ) ENGINE=OLAP
   UNIQUE KEY(`field1`, `field2`)
   DISTRIBUTED BY HASH (field1) BUCKETS 10
   PROPERTIES (
       "replication_num" = "3",
       "storage_format" = "DEFAULT"
   );
   ```
   
   Alter Table Sql
   ```
   1.ALTER TABLE test.test1 ADD COLUMN field4 varchar(100) default '';
   2.ALTER TABLE test.test1 MODIFY COLUMN field4 bigint(20);
   ```
   when execute second alter sql throw this error
   **_Error : errCode = 2, detailMessage = Can not change default value_**
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to