You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Beam JIRA Bot (Jira)" <ji...@apache.org> on 2020/08/10 17:07:09 UTC

[jira] [Commented] (BEAM-9777) Support UNNEST(ARRAY[STRUCT()])

    [ https://issues.apache.org/jira/browse/BEAM-9777?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17174487#comment-17174487 ] 

Beam JIRA Bot commented on BEAM-9777:
-------------------------------------

This issue is P2 but has been unassigned without any comment for 60 days so it has been labeled "stale-P2". If this issue is still affecting you, we care! Please comment and remove the label. Otherwise, in 14 days the issue will be moved to P3.

Please see https://beam.apache.org/contribute/jira-priorities/ for a detailed explanation of what these priorities mean.


> Support UNNEST(ARRAY[STRUCT()])
> -------------------------------
>
>                 Key: BEAM-9777
>                 URL: https://issues.apache.org/jira/browse/BEAM-9777
>             Project: Beam
>          Issue Type: New Feature
>          Components: dsl-sql-zetasql
>            Reporter: Andrew Pilloud
>            Priority: P2
>              Labels: stale-P2
>
> It would be nice to be able to UNNEST an array of structs. For example:
> {code:sql}
> WITH pcol AS
>   (SELECT 1 AS key, ARRAY[STRUCT("abc" AS name, "rst" AS slot),STRUCT("def" AS name, "uvw" AS slot)] AS promo
>   UNION ALL
>   SELECT 2 AS key, ARRAY[STRUCT("ghi" AS name, "xyz" AS slot)] AS promo)
> SELECT * FROM pcol, UNNEST(pcol.promo);
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)