You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Sourabh Badhya (Jira)" <ji...@apache.org> on 2024/04/05 11:17:00 UTC

[jira] [Resolved] (HIVE-28148) Implement array_compact UDF to remove all nulls from an array

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

Sourabh Badhya resolved HIVE-28148.
-----------------------------------
    Fix Version/s: 4.1.0
       Resolution: Fixed

Merged to master.
Thanks [~tarak271] for the contribution.

> Implement array_compact UDF to remove all nulls from an array
> -------------------------------------------------------------
>
>                 Key: HIVE-28148
>                 URL: https://issues.apache.org/jira/browse/HIVE-28148
>             Project: Hive
>          Issue Type: Sub-task
>          Components: Hive
>            Reporter: Taraka Rama Rao Lethavadla
>            Assignee: Taraka Rama Rao Lethavadla
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.1.0
>
>
> *array_compact(array)*
> Removes NULL elements from {{{}array{}}}.
>  
> {noformat}
> SELECT array_compact(array(1, 2, NULL, 3, NULL, 3));
> => [1, 2, 3, 3]
> {noformat}
>  



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