gojumprope opened a new issue, #15167: URL: https://github.com/apache/doris/issues/15167
### 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 1.2.0 ### What's Wrong? Where clause "IN" condition return wrong result if there are too many value in the "IN" condition ### What You Expected? return correct result ### How to Reproduce? CREATE TABLE `test_table` ( `AreaId` bigint NULL COMMENT "" ) DISTRIBUTED BY HASH (AreaId) BUCKETS 32 PROPERTIES ( "replication_allocation" = "tag.location.default: 1" ); INSERT INTO test_table VALUES(1),(12),(123),(1234),(12345),(123456),(1234567); -- 2 count SELECT COUNT(1) FROM dbo.test_table where areaid in (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48); -- 0 count SELECT COUNT(1) FROM dbo.test_table where areaid in (55555); -- 4 count SELECT COUNT(1) FROM dbo.test_table where areaid in (55555, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48); SELECT * FROM dbo.test_table where areaid in (55555, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48) order by 1; AreaId| ------+ 1| 12| 1234| 12345| should return areaid 1 and 12 only ### 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]
