[ https://issues.apache.org/jira/browse/CALCITE-4782 ]
Julian Hyde deleted comment on CALCITE-4782:
--------------------------------------
was (Author: xuyangzhong):
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: xuyang
> Priority: Major
>
> SQL:
> {code:java}
> // code placeholder
> select * from xxx where cast(n as boolean){code}
> 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.20.10#820010)