spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marek Novotny (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-25068) High-order function: exists(array<T>, function<T, boolean>) → boolean
Date Mon, 13 Aug 2018 10:38:00 GMT

    [ https://issues.apache.org/jira/browse/SPARK-25068?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16578087#comment-16578087
] 

Marek Novotny commented on SPARK-25068:
---------------------------------------

I am curious about the motivation for adding this function. :) Was it added just to get
Spark aligned with some other SQL engine or standard? Or is the motivation to offer users
a function with better performance in {{true}} cases compare to {{aggregate}}? If so, what
about adding a function like {{forAll}} in Scala that would stop iterating when the lambda
returns {{false}}?

> High-order function: exists(array<T>, function<T, boolean>) → boolean
> ---------------------------------------------------------------------
>
>                 Key: SPARK-25068
>                 URL: https://issues.apache.org/jira/browse/SPARK-25068
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 2.4.0
>            Reporter: Takuya Ueshin
>            Assignee: Takuya Ueshin
>            Priority: Major
>             Fix For: 2.4.0
>
>
> Tests if arrays have those elements for which function returns true.



--
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


Mime
View raw message