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/11/17 14:27:00 UTC

[jira] [Updated] (HIVE-26754) Implement array_distinct UDF to return an array after removing duplicates in it

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

Taraka Rama Rao Lethavadla updated HIVE-26754:
----------------------------------------------
    Description: 
*array_distinct(array(obj1, obj2,...))* - The function returns an array of the same type as the input argument where all duplicate values have been removed.

Example:
> SELECT array_distinct(array('b', 'd', 'd', 'a')) FROM src LIMIT 1;
['a', 'b', 'c']

> Implement array_distinct UDF to return an array after removing duplicates in it
> -------------------------------------------------------------------------------
>
>                 Key: HIVE-26754
>                 URL: https://issues.apache.org/jira/browse/HIVE-26754
>             Project: Hive
>          Issue Type: Sub-task
>          Components: Hive
>            Reporter: Taraka Rama Rao Lethavadla
>            Assignee: Taraka Rama Rao Lethavadla
>            Priority: Major
>
> *array_distinct(array(obj1, obj2,...))* - The function returns an array of the same type as the input argument where all duplicate values have been removed.
> Example:
> > SELECT array_distinct(array('b', 'd', 'd', 'a')) FROM src LIMIT 1;
> ['a', 'b', 'c']



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