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

EnumerableUncollect throws NPE if input has ((List) null)

    XMLWordPrintableJSON

Details

    Description

      EnumerableUncollect throws NPE when an input has element = ((List) null)

      Example:

      SELECT * FROM UNNEST(CAST(null AS INTEGER ARRAY))
      

      In a real situation, it can appear if to use left join. For example:

      SELECT ARRAY(SELECT * FROM UNNEST(t.x)) FROM (VALUES(1)) LEFT JOIN (SELECT ARRAY[1] as x, 2 as y) t ON t.y = 1
      

      Attachments

        Issue Links

          Activity

            People

              dmsysolyatin Dmitry Sysolyatin
              dmsysolyatin Dmitry Sysolyatin
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m