You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Joris Van den Bossche (Jira)" <ji...@apache.org> on 2021/05/11 09:09:00 UTC

[jira] [Commented] (ARROW-12710) [C++] String concatenate aggregate kernel

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

Joris Van den Bossche commented on ARROW-12710:
-----------------------------------------------

Is this already covered by ARROW-10959? (or I don't fully understand the difference)

In Python, you can do a simple concatenation of an array of strings with the {{sum()} function, or using {{str.join}} for using a separator:

{code}
>>> ",".join(['a', 'b', 'c'])
'a,b,c'
{code}

> [C++] String concatenate aggregate kernel
> -----------------------------------------
>
>                 Key: ARROW-12710
>                 URL: https://issues.apache.org/jira/browse/ARROW-12710
>             Project: Apache Arrow
>          Issue Type: New Feature
>          Components: C++
>            Reporter: Ian Cook
>            Priority: Major
>
> Like MySQL/Impala {{group_concat}} and PostgreSQL {{string_agg}}. Takes a string array and a separator (possibly optional?) and returns one scalar string (one per group in the case of group aggregation) representing all the string values in the array concatenated together, with the separator added between each pair of concatenated values.



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