Xiao Li created SPARK-23909:
-------------------------------

             Summary: High-order function: filter(array<T>, function<T, 
boolean>) → array<T>
                 Key: SPARK-23909
                 URL: https://issues.apache.org/jira/browse/SPARK-23909
             Project: Spark
          Issue Type: Sub-task
          Components: SQL
    Affects Versions: 2.3.0
            Reporter: Xiao Li


Ref: https://prestodb.io/docs/current/functions/array.html

Constructs an array from those elements of array for which function returns 
true:
{noformat}
SELECT filter(ARRAY [], x -> true); -- []
SELECT filter(ARRAY [5, -6, NULL, 7], x -> x > 0); -- [5, 7]
SELECT filter(ARRAY [5, NULL, 7, NULL], x -> x IS NOT NULL); -- [5, 7]
{noformat}



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

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

Reply via email to