You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Taraka Rama Rao Lethavadla (Jira)" <ji...@apache.org> on 2022/12/27 16:53:00 UTC

[jira] [Updated] (HIVE-26889) Implement array_join udf to concatenate the elements of an array with a specified delimiter

     [ https://issues.apache.org/jira/browse/HIVE-26889?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Taraka Rama Rao Lethavadla updated HIVE-26889:
----------------------------------------------
    Description: 
*array_join(array, delimiter, replaceNull)* - concatenate the elements of an array with a specified delimiter
Example:
{noformat}
> SELECT array_join(array(1, 2, 3,4), ',') FROM src LIMIT 1;
1,2,3,4
> SELECT array_join(array(1, 2, NULL, 4), ',',':') FROM src LIMIT 1;
1,2,:,4{noformat}
Returns NULL if array is null/empty

> Implement array_join udf to concatenate the elements of an array with a specified delimiter
> -------------------------------------------------------------------------------------------
>
>                 Key: HIVE-26889
>                 URL: https://issues.apache.org/jira/browse/HIVE-26889
>             Project: Hive
>          Issue Type: Sub-task
>          Components: Hive
>            Reporter: Taraka Rama Rao Lethavadla
>            Priority: Minor
>
> *array_join(array, delimiter, replaceNull)* - concatenate the elements of an array with a specified delimiter
> Example:
> {noformat}
> > SELECT array_join(array(1, 2, 3,4), ',') FROM src LIMIT 1;
> 1,2,3,4
> > SELECT array_join(array(1, 2, NULL, 4), ',',':') FROM src LIMIT 1;
> 1,2,:,4{noformat}
> Returns NULL if array is null/empty



--
This message was sent by Atlassian Jira
(v8.20.10#820010)