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 2021/07/13 17:21:01 UTC

[jira] [Commented] (BEAM-9879) Support STRING_AGG in BeamSQL

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

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

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 STRING_AGG in BeamSQL
> -----------------------------
>
>                 Key: BEAM-9879
>                 URL: https://issues.apache.org/jira/browse/BEAM-9879
>             Project: Beam
>          Issue Type: Task
>          Components: dsl-sql, dsl-sql-zetasql
>            Reporter: Rui Wang
>            Priority: P2
>              Labels: stale-P2
>             Fix For: Not applicable
>
>
> Support STRING_AGG function in ZetaSQL dialect. (Also if Calcite has this function built-in, support it in Calcite dialect too)
> See the reference: https://cloud.google.com/bigquery/docs/reference/standard-sql/aggregate_functions#string_agg
> {code:sql}
> SELECT
>        STRING_AGG(c) str_agg_unary,
>        STRING_AGG(c, ", ") str_agg_binary,
>        STRING_AGG(d) bytes_agg_unary,
>        STRING_AGG(d, b", ") bytes_agg_binary
> {code}
> More test cases here: https://github.com/google/zetasql/blob/c55f967a5ae35b476437210c529691d8a73f5507/zetasql/compliance/testdata/aggregation_queries.test
> Examples:
> {code:sql}
> SELECT STRING_AGG(fruit) AS string_agg
> FROM UNNEST(["apple", NULL, "pear", "banana", "pear"]) AS fruit;
> +------------------------+
> | string_agg             |
> +------------------------+
> | apple,pear,banana,pear |
> +------------------------+
> {code}



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