You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Julian Hyde (JIRA)" <ji...@apache.org> on 2015/06/11 08:44:00 UTC

[jira] [Commented] (CALCITE-755) NullPointerException when compile execute "not (COL='Other')"

    [ https://issues.apache.org/jira/browse/CALCITE-755?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14581538#comment-14581538 ] 

Julian Hyde commented on CALCITE-755:
-------------------------------------

I think this was fixed a while ago. Can you reproduce on more recent versions of Calcite?

> NullPointerException when compile execute "not (COL='Other')"
> -------------------------------------------------------------
>
>                 Key: CALCITE-755
>                 URL: https://issues.apache.org/jira/browse/CALCITE-755
>             Project: Calcite
>          Issue Type: Bug
>    Affects Versions: 0.9.2-incubating
>            Reporter: liyang
>            Assignee: Julian Hyde
>
> The where clause "not (COL='Other')" will generate code like
> /*  75 */               if (!net.hydromatic.optiq.runtime.SqlFunctions.eq(current[15] == null ? (String) null : current[15].toString(), "Other")) {
> /*  76 */                 return true;
> /*  77 */               }
> And cause NPE if COL has null value



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)