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 2023/02/02 08:23:00 UTC

[jira] [Resolved] (HIVE-26774) Implement array_slice UDF to get the subset of elements from an array (subarray)

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

Taraka Rama Rao Lethavadla resolved HIVE-26774.
-----------------------------------------------
    Fix Version/s: 4.0.0
       Resolution: Fixed

> Implement array_slice UDF to get the subset of elements from an array (subarray)
> --------------------------------------------------------------------------------
>
>                 Key: HIVE-26774
>                 URL: https://issues.apache.org/jira/browse/HIVE-26774
>             Project: Hive
>          Issue Type: Sub-task
>          Components: Hive
>            Reporter: Taraka Rama Rao Lethavadla
>            Assignee: Taraka Rama Rao Lethavadla
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 4.0.0
>
>          Time Spent: 1h 40m
>  Remaining Estimate: 0h
>
> *array_slice(array, start, length)* - Returns the subset or range of elements from an array (subarray).
> Example:
>   
> {noformat}
> > SELECT array_slice(array(1, 2, 3,4), 2,2) FROM src LIMIT 1;
> 3,4{noformat}
> Returns empty list if start/length are out of range of the array



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