You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "xuyangzhong (Jira)" <ji...@apache.org> on 2021/09/17 03:13:00 UTC
[jira] [Commented] (CALCITE-4782) Casting from a numeric type to
boolean is always false
[ https://issues.apache.org/jira/browse/CALCITE-4782?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17416416#comment-17416416 ]
xuyangzhong commented on CALCITE-4782:
--------------------------------------
link https://issues.apache.org/jira/browse/CALCITE-4777
> Casting from a numeric type to boolean is always false
> ------------------------------------------------------
>
> Key: CALCITE-4782
> URL: https://issues.apache.org/jira/browse/CALCITE-4782
> Project: Calcite
> Issue Type: Bug
> Reporter: xuyangzhong
> Priority: Major
>
> In calcite, casting a non-zero number to boolean is always false, which is different with other databases. The other databases shows that casting zero to boolean is false and casting non-zero value to boolean is true.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)