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

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

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          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

                Slack

                  Issue deployment