gardenerHan opened a new issue, #15754: URL: https://github.com/apache/doris/issues/15754
### 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 version 1.1.3 ### What's Wrong? select if(cccc in ('122','2323','232323'),1,0) p1 from(select null as cccc )a; 这个sql为什么会返回1呢,sql结果不稳定,在mysql和hive中都会0,而且按照逻辑也应该返回0哇,doris版本1.1.3 ### What You Expected? 按照语义及sql逻辑,应该返回0,并且sql结果应该是稳定的 ### How to Reproduce? mysql客户端执行sql即可复现:select if(cccc in ('122','2323','232323'),1,0) p1 from(select null as cccc )a; ### Anything Else? 我的sql执行结果:mysql> select if(cccc in ('122','2323','232323'),1,0) p1 from(select null as cccc )a; +----+ | p1 | +----+ | 1 | +----+ 1 row in set (0.05 sec) mysql> select if(cccc in ('122','2323','232323'),1,0) p1 from(select null as cccc )a; +----+ | p1 | +----+ | 1 | +----+ 1 row in set (0.05 sec) mysql> select if(cccc in ('122','2323','232323'),1,0) p1 from(select null as cccc )a; +----+ | p1 | +----+ | 1 | +----+ 1 row in set (0.05 sec) mysql> select if(cccc in ('122','2323','232323'),1,0) p1 from(select null as cccc )a; +----+ | p1 | +----+ | 0 | +----+ 1 row in set (0.04 sec) mysql> select if(cccc in ('122','2323','232323'),1,0) p1 from(select null as cccc )a; +----+ | p1 | +----+ | 0 | +----+ ### 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: commits-unsubscr...@doris.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org