Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-10895

Support UNNEST an (possibly nested) array field of an struct column

Details

    • New Feature
    • Status: Resolved
    • P2
    • Resolution: Fixed
    • None
    • 2.25.0
    • dsl-sql-zetasql
    • None

    Description

      Currently Beam ZetaSQL only support UNNEST an array column of a table:

       

      e.g. SELECT * FROM table, UNNEST(table.array_col)

       

      From the ZetaSQL spec, UNNEST should also work on (possibly nested) array field of an struct column:

       

      e.g. 1: SELECT * FROM table, UNNEST(table.struct_col.array_field)

      e.g. 2: SELECT * FROM table, UNNEST(table.struct_col.struct_field.array_field)

      Attachments

        Issue Links

          Activity

            People

              robinyqiu Robin Qiu
              robinyqiu Robin Qiu
              Votes:
              0 Vote for this issue
              Watchers:
              1 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 - 1h 10m
                  1h 10m