You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2023/01/10 02:39:47 UTC
[GitHub] [doris] gardenerHan opened a new issue, #15754: [Bug]
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-unsubscribe@doris.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [doris] gardenerHan commented on issue #15754: [Bug]
Posted by GitBox <gi...@apache.org>.
gardenerHan commented on issue #15754:
URL: https://github.com/apache/doris/issues/15754#issuecomment-1376653323
发现在1.2.1已修复
--
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-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [doris] gardenerHan closed issue #15754: [Bug]
Posted by GitBox <gi...@apache.org>.
gardenerHan closed issue #15754: [Bug]
URL: https://github.com/apache/doris/issues/15754
--
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-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org