You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Petar Zecevic (JIRA)" <ji...@apache.org> on 2019/02/07 08:31:00 UTC

[jira] [Resolved] (SPARK-26826) Array indexing functions array_allpositions and array_select

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

Petar Zecevic resolved SPARK-26826.
-----------------------------------
    Resolution: Won't Fix

> Array indexing functions array_allpositions and array_select
> ------------------------------------------------------------
>
>                 Key: SPARK-26826
>                 URL: https://issues.apache.org/jira/browse/SPARK-26826
>             Project: Spark
>          Issue Type: New Feature
>          Components: SQL
>    Affects Versions: 2.4.0
>            Reporter: Petar Zecevic
>            Priority: Major
>
> This ticket proposes two extra array functions: {{array_allpositions}} (named after {{array_position}}) and {{array_select}}. These functions should make it easier to:
> * get an array of indices of all occurences of a value in an array ({{array_allpositions}})
> * select all elements of an array based on an array of indices ({{array_select}})
> Although higher-order functions, such as {{aggregate}} and {{transform}}, have been recently added, performing tasks above is still not simple, hence this addition.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org