malwaregarry opened a new issue, #35404: URL: https://github.com/apache/doris/issues/35404
### 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.03 ### What's Wrong? We have an expression which evaluates to NULL but is treated as FALSE in a where clause `SELECT (NOT (CAST(CAST(true AS varchar) AS FLOAT) BETWEEN 1 AND 0)); ` returns NULL `SELECT t0.c0 FROM t0 WHERE (NOT (CAST(CAST(true AS varchar) AS FLOAT) BETWEEN 1 AND 0));` returns a rows ### What You Expected? `SELECT t0.c0 FROM t0 WHERE (NOT (CAST(CAST(true AS varchar) AS FLOAT) BETWEEN 1 AND 0));` returns empty set ### How to Reproduce? ``` CREATE TABLE t0(c0 int) UNIQUE KEY(c0) DISTRIBUTED BY HASH (c0) PROPERTIES ("replication_num" = "1"); INSERT INTO t0 (c0) VALUES (0); SELECT (NOT (CAST(CAST(true AS varchar) AS FLOAT) BETWEEN 1 AND 0)); SELECT t0.c0 FROM t0 WHERE (NOT (CAST(CAST(true AS varchar) AS FLOAT) BETWEEN 1 AND 0)); ``` ### 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]
