yongjinhou opened a new issue, #40870: URL: https://github.com/apache/doris/issues/40870
### 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.1.5 ### What's Wrong? 使用新优化器,insert时数值超出类型表示范围仍导入成功 ### What You Expected? insert时数值超出类型表示范围导入失败并抛出异常 ### How to Reproduce? insert导入的值超出int范围: ``` CREATE TABLE int_tb ( k1 INT NULL, v1 INT SUM NULL, v2 INT MAX NULL, v3 INT MIN NULL, v4 INT REPLACE NULL ) AGGREGATE KEY(k1) DISTRIBUTED BY HASH(k1) BUCKETS 15 PROPERTIES ("replication_allocation" = "tag.location.default: 1"); ``` insert into int_tb select 0, -2147483649, 0, 0, 0; ``` insert导入的值超出char范围: ``` CREATE TABLE stream_insert_datatype_db.varchar_tb ( k1 VARCHAR(1) NULL, v1 VARCHAR(1) REPLACE NULL ) AGGREGATE KEY(k1) DISTRIBUTED BY HASH(k1) BUCKETS 15; ``` ``` SET enable_insert_strict=true; ``` ``` insert into varchar_tb select "a", 100; ``` ### Anything Else? 无 ### 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]
