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

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

liyang created CALCITE-755:
------------------------------

             Summary: 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)