You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@doris.apache.org by GitBox <gi...@apache.org> on 2019/07/17 06:25:18 UTC
[GitHub] [incubator-doris] chenhao7253886 opened a new issue #1492: NULL's
operator "<=>" get wrong result
chenhao7253886 opened a new issue #1492: NULL's operator "<=>" get wrong result
URL: https://github.com/apache/incubator-doris/issues/1492
now , the result of comparing null with other value by operator "<=>" is wrong, for example:
mysql> select null <=> null;
+-------------+
| NULL = NULL |
+-------------+
| NULL |
+-------------+
1 row in set (0.00 sec)
the result is wrong, the right result is:
mysql> select null <=> null;
+-------------+
| NULL = NULL |
+-------------+
| 1 |
+-------------+
1 row in set (0.01 sec)
Operator "<=>" is safe for null's comparingļ¼so it will return 1 or 0.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@doris.apache.org
For additional commands, e-mail: dev-help@doris.apache.org