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

AssertionError: Not-null boxed primitive should come back as primitive when translating correlated variables

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.17.0
    • Fix Version/s: 1.18.0
    • Component/s: core
    • Labels:
      None

      Description

      Queries introducing correlated variables on boxed primitive fields throw an assertion error when they are translated to generated code in the Enumerable convention.

      For example, consider the following query where e.commission is a field of type Integer:

      SELECT empid FROM emps e 
      WHERE NOT EXISTS 
           (SELECT 1 FROM depts d WHERE d.deptno=e.commission)
      

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                julianhyde Julian Hyde
                Reporter:
                zabetak Stamatis Zampetakis
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: