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

RexImpTable erroneously declares NullPolicy.NONE for IS_EMPTY

    XMLWordPrintableJSON

Details

    • Patch

    Description

      RexImpTable implements IS EMPTY and IS NOT EMPTY using Collections.isEmpty() but declares them as NullPolicy.NONE. This causes nullable array and map columns to throw NPE at execution time when hitting null values. I strongly suspect that other collection operators are similarly misclassified and would run in to issues is used against nullable types.

      Attachments

        1. is-empty-nullable.patch
          5 kB
          Chris Dennis

        Issue Links

          Activity

            People

              mbudiu Mihai Budiu
              chrisdennis Chris Dennis
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: