You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Antoine Pitrou (Jira)" <ji...@apache.org> on 2021/06/10 09:24:00 UTC
[jira] [Commented] (ARROW-12709) [C++] Add variadic string join
kernel
[ https://issues.apache.org/jira/browse/ARROW-12709?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17360678#comment-17360678 ]
Antoine Pitrou commented on ARROW-12709:
----------------------------------------
Do we want this kernel to be truly variadic or to take a struct array?
> [C++] Add variadic string join kernel
> -------------------------------------
>
> Key: ARROW-12709
> URL: https://issues.apache.org/jira/browse/ARROW-12709
> Project: Apache Arrow
> Issue Type: New Feature
> Components: C++
> Reporter: Ian Cook
> Priority: Major
>
> Similar to SQL's {{concat}} and {{concat_ws}}. Should take 0, 1, 2, ... string arrays and an optional separator (default empty string) and concatenate them together, returning a string array.
> For example, in the case of 2 input arrays and with the separator {{"-"}}, this would take inputs:
> {code}
> Array<string> Array<string>
> [ [
> "foo", "bar",
> "push" "pop"
> ] ]
> {code}
> and return output:
> {code}
> Array<string>
> [
> "foo-bar",
> "push-pop"
> ]
> {code}
> Should also accept scalar strings and recycle their values.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)