cjj2010 opened a new issue, #36463: URL: https://github.com/apache/doris/issues/36463
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no similar issues. ### Version master ### What's Wrong? When I execute "alter table test_dup_schema_key_change_add1 add column watch DECIMAL(38,10) KEY DEFAULT "16899.6464689" AFTER username " Double the amount of table data  ### What You Expected? Do not change the original amount of data ### How to Reproduce? one step ``` CREATE TABLE IF NOT EXISTS test_dup_schema_key_change_add1 ( `user_id` LARGEINT NOT NULL COMMENT 用户id, `username` VARCHAR(50) NOT NULL COMMENT 用户昵称, `city` VARCHAR(20) COMMENT 用户所在城市, `age` SMALLINT COMMENT 用户年龄, `sex` TINYINT COMMENT 用户性别, `phone` LARGEINT COMMENT 用户电话, `address` VARCHAR(500) COMMENT 用户地址, `register_time` DATETIME COMMENT 用户注册时间 ) DUPLICATE KEY(`user_id`, `username`) DISTRIBUTED BY HASH(`user_id`) BUCKETS 1 PROPERTIES ( replication_allocation = tag.location.default: 1 ); ``` two step ``` insert into test_dup_schema_key_change_add1 values(123456789, 'Alice', 'Beijing', 25, 0, 13812345678, 'No. 123 Street, Beijing', '2022-01-01 10:00:00'), (234567890, 'Bob', 'Shanghai', 30, 1, 13998765432, 'No. 456 Street, Shanghai', '2022-02-02 12:00:00'), (345678901, 'Carol', 'Guangzhou', 28, 0, 13724681357, 'No. 789 Street, Guangzhou', '2022-03-03 14:00:00'), (456789012, 'Dave', 'Shenzhen', 35, 1, 13680864279, 'No. 987 Street, Shenzhen', '2022-04-04 16:00:00'), (567890123, 'Eve', 'Chengdu', 27, 0, 13572468091, 'No. 654 Street, Chengdu', '2022-05-05 18:00:00'), (678901234, 'Frank', 'Hangzhou', 32, 1, 13467985213, 'No. 321 Street, Hangzhou', '2022-06-06 20:00:00'), (789012345, 'Grace', 'Xian', 29, 0, 13333333333, 'No. 222 Street, Xian', '2022-07-07 22:00:00'); ``` three step ``` alter table test_dup_schema_key_change_add1 add column watch DECIMAL(38,10) KEY DEFAULT "16899.6464689" AFTER username ``` ### Anything Else? _No response_ ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
