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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 0.9.2-incubating
    • 1.4.0-incubating
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: