lide-reed opened a new issue, #9210: URL: https://github.com/apache/incubator-doris/issues/9210
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/incubator-doris/issues?q=is%3Aissue) and found no similar issues. ### Version dev-1.0.1 ### What's Wrong? Step 1: CREATE TABLE `test1` ( `goods_id` bigint(20) , `goods_name` varchar(200), `day_sale` int(11) , `date` date ) UNIQUE KEY(`goods_id`) DISTRIBUTED BY HASH(`goods_id`) BUCKETS 10 PROPERTIES ( "replace_if_not_null" = "true" ); Step 2: INSERT INTO test1 ( `goods_id`, `goods_name`, `day_sale`, `date` ) VALUES ( 1, "good1", 10, '2022-04-20' ), (2, "good2",12,'2022-04-20'); MySQL [test]> select * from test1; +----------+------------+----------+------------+ | goods_id | goods_name | day_sale | date | +----------+------------+----------+------------+ | 2 | good2 | 12 | 2022-04-20 | | 1 | good1 | 10 | 2022-04-20 | +----------+------------+----------+------------+ 2 rows in set (0.01 sec) Step 3: INSERT INTO test1 ( `goods_id`, `goods_name`, `day_sale`, `date` ) VALUES ( 1, NULL, 11, '2022-04-20' ), (2,NULL,13,'2022-04-20'); MySQL [test]> select * from test1;+----------+------------+----------+------------+ | goods_id | goods_name | day_sale | date | +----------+------------+----------+------------+ | 2 | NULL | 13 | 2022-04-20 | | 1 | NULL | 11 | 2022-04-20 | +----------+------------+----------+------------+ 2 rows in set (0.01 sec) Expect: MySQL [test]> select * from test1; +----------+------------+----------+------------+ | goods_id | goods_name | day_sale | date | +----------+------------+----------+------------+ | 2 | good2 | 13 | 2022-04-20 | | 1 | good1 | 11 | 2022-04-20 | +----------+------------+----------+------------+ 2 rows in set (0.01 sec) ### What You Expected? MySQL [test]> select * from test1; +----------+------------+----------+------------+ | goods_id | goods_name | day_sale | date | +----------+------------+----------+------------+ | 2 | good2 | 13 | 2022-04-20 | | 1 | good1 | 11 | 2022-04-20 | +----------+------------+----------+------------+ 2 rows in set (0.01 sec) Expect it could implement part columns updating. ### How to Reproduce? _No response_ ### 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]
