zxealous opened a new issue, #31552: URL: https://github.com/apache/doris/issues/31552
### 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 2.0.5 ### What's Wrong? case: ``` CREATE TABLE test.test_sys_update_basic_test_update_decimal_tb ( k1 DECIMAL(10, 5) NULL, v1 DECIMAL(10, 5) NULL, v2 DECIMAL(10, 5) NULL, v3 DECIMAL(10, 5) NULL, v4 DECIMAL(10, 5) NULL ) UNIQUE KEY(k1) DISTRIBUTED BY HASH(k1) BUCKETS 5 PROPERTIES ( "replication_allocation" = "tag.location.default: 1" ); insert into test_sys_update_basic_test_update_decimal_tb values(1.001, 2.002, 3.003, 4.004, 5.006); UPDATE test_sys_update_basic_test_update_decimal_tb SET v1=null WHERE k1 > 0; select * from test_sys_update_basic_test_update_decimal_tb; select 1.001, null, 3.003, 4.004, 5.006; UPDATE test_sys_update_basic_test_update_decimal_tb SET v1="0.00000001" WHERE k1 = 1.001; ``` on 2.0.5: ``` MySQL [test]> UPDATE test_sys_update_basic_test_update_decimal_tb SET v1="0.00000001" WHERE k1 = 1.00100; ERROR 1105 (HY000): errCode = 2, detailMessage = (10.81.85.90)[INVALID_ARGUMENT]Create Expr failed because [E33] Invalid value: 0.00000001 for type Decimal(10, 5) 0# doris::get_stack_trace[abi:cxx11](int) at /home/disk2/zcy/baidu/bdg/doris/PALO-2.0/be/src/util/stack_util.cpp:51 1# doris::Exception::Exception(int, std::basic_string_view<char, std::char_traits<char> >) at /home/disk2/zcy/baidu/bdg/doris/PALO-2.0/be/src/common/exception.cpp:27 2# doris::Exception::Exception<std::__cxx11::basic_string<char, std::char_trait ``` on master: ``` MySQL [test]> UPDATE test_sys_update_basic_test_update_decimal_tb SET v1="0.00000001" WHERE k1 = 1.001; Query OK, 1 row affected (0.096 sec) {'label':'label_13fd8de12c0c4a08_928adb0ed741969c', 'status':'VISIBLE', 'txnId':'22'} MySQL [test]> select * from test_sys_update_basic_test_update_decimal_tb; +---------+---------+---------+---------+---------+ | k1 | v1 | v2 | v3 | v4 | +---------+---------+---------+---------+---------+ | 1.00100 | 0.00000 | 3.00300 | 4.00400 | 5.00600 | +---------+---------+---------+---------+---------+ 1 row in set (0.019 sec) ``` ### What You Expected? work well ### 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]
