Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-755

NullPointerException when compile execute "not (COL='Other')"

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 0.9.2-incubating
    • Fix Version/s: 1.4.0-incubating
    • Component/s: None
    • Labels:
      None

      Description

      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

        Attachments

          Activity

            People

            • Assignee:
              julianhyde Julian Hyde
              Reporter:
              liyang.gmt8@gmail.com liyang
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: