You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Rui Wang (Jira)" <ji...@apache.org> on 2020/05/04 18:55:00 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=17099255#comment-17099255 ] 

Rui Wang commented on BEAM-9879:
--------------------------------

A good reference of implementation is what is done in 

https://issues.apache.org/jira/browse/BEAM-9418 (https://github.com/apache/beam/pull/11333)

> 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: Major
>
> 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
> 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)