Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-34633

Support unnesting array constants

    XMLWordPrintableJSON

Details

    Description

      It seems that the current planner doesn't support using UNNEST on array constants.

      SELECT * FROM UNNEST(ARRAY[1,2,3]);

       
      The following query can't be compiled.

      SELECT * FROM (VALUES('a')) CROSS JOIN UNNEST(ARRAY[1, 2, 3])

       
      The rewritten version works.

      SELECT * FROM (SELECT *, ARRAY[1,2,3] AS A FROM (VALUES('a'))) CROSS JOIN UNNEST(A)

      Attachments

        Issue Links

          Activity

            People

              jeyhunkarimov Jeyhun Karimov
              xccui Xingcan Cui
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: