mrhhsg opened a new issue, #17568: URL: https://github.com/apache/doris/issues/17568
### 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 * master * 1.2 ### What's Wrong? 1. create the table and insert data: ```sql create table test_null (id boolean null,value int null) duplicate key(id) DISTRIBUTED BY HASH(id) buckets 1 PROPERTIES ("replication_allocation" = "tag.location.default: 1"); insert into test_null values(1, null), (1,1), (null, 2), (1,2), (0, 3), (0, 4); ``` 2. check the table's rows ```sql select * from test_null; ``` got result: ``` +------+-------+ | id | value | +------+-------+ | NULL | 2 | | 0 | 4 | | 0 | 3 | | 1 | 2 | | 1 | 1 | | 1 | NULL | +------+-------+ ``` 3. test with `is null` ```sql select * from test_null where id is null; ``` got result: ``` +------+-------+ | id | value | +------+-------+ | NULL | 2 | | 0 | 4 | | 0 | 3 | +------+-------+ ``` ### What You Expected? got result: ``` +------+-------+ | id | value | +------+-------+ | NULL | 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]
