chenlinzhong opened a new issue, #39864: URL: https://github.com/apache/doris/issues/39864
### 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 ``` create database if not exists test_db; CREATE TABLE test_db.test_tbl ( k1 decimal(1,0) NULL, v1 decimal(1,0) NULL ) ENGINE=OLAP DUPLICATE KEY(k1) DISTRIBUTED BY HASH(k1) BUCKETS 15 PROPERTIES ( "replication_allocation" = "tag.location.default: 1" ); #数据 data.csv 1,1 28,2, 38,3 400,4 5000,5 6000,65 #streamload导入 curl --location-trusted -u root:clz123 -H "strict_mode: true" -T data.csv -H "column_separator:," http://{host}:{port}/api/test_db/test_tbl/_stream_load ``` ### What's Wrong? 2.0+ after load the result is wrong ``` # 2.1.5-rc02 版本,结果不符合预期,应该是要报错的,目前看插入的时候是按照M的长度从左到右截取的 MySQL [(none)]> select * from test_db.test_tbl; +------+------+ | k1 | v1 | +------+------+ | 2 | 2 | | 4 | 4 | | 5 | 5 | | 1 | 1 | | 3 | 3 | +------+------+ # 2.0.12 版本,结果不符合预期,应该是要报错的,而且插入的时候是按照M的长度从左到右截取的 MySQL [(none)]> select * from test_db.test_tbl; +------+------+ | k1 | v1 | +------+------+ | 2 | 2 | | 4 | 4 | | 5 | 5 | | 1 | 1 | | 3 | 3 | +------+------+ # 1.1.5 版本 符合预期 MySQL [(none)]> select * from test_db.test_tbl; +------+------+ | k1 | v1 | +------+------+ | 1 | 1 | +------+------+ Reason: decimal value is not valid for definition, column=k1, value=28, precision=1, scale=0; . src line []; Reason: decimal value is not valid for definition, column=k1, value=38, precision=1, scale=0; . src line []; Reason: decimal value is not valid for definition, column=k1, value=400, precision=1, scale=0; . src line []; Reason: decimal value is not valid for definition, column=k1, value=5000, precision=1, scale=0; . src line []; Reason: decimal value is not valid for definition, column=k1, value=6000, precision=1, scale=0; . src line []; #1.2.8版本 符合预期 MySQL [(none)]> select * from test_db.test_tbl; +------+------+ | k1 | v1 | +------+------+ | 1 | 1 | +------+------+ Reason: decimal value is not valid for definition, column=k1, value=28, precision=1, scale=0; . src line []; Reason: decimal value is not valid for definition, column=k1, value=38, precision=1, scale=0; . src line []; Reason: decimal value is not valid for definition, column=k1, value=400, precision=1, scale=0; . src line []; Reason: decimal value is not valid for definition, column=k1, value=5000, precision=1, scale=0; . src line []; Reason: decimal value is not valid for definition, column=k1, value=6000, precision=1, scale=0; . src line []; ``` ### What You Expected? 行为和1.2之前的保持一致 ### How to Reproduce? _No response_ ### Anything Else? _No response_ ### Are you willing to submit PR? - [X] 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]
