You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Dhiren Navani (Jira)" <ji...@apache.org> on 2021/10/31 04:31:00 UTC

[jira] [Commented] (SPARK-37171) Addition of forany and forall semantics to Spark Dataframes

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

Dhiren Navani commented on SPARK-37171:
---------------------------------------

Added a pull request

> Addition of forany and forall semantics to Spark Dataframes
> -----------------------------------------------------------
>
>                 Key: SPARK-37171
>                 URL: https://issues.apache.org/jira/browse/SPARK-37171
>             Project: Spark
>          Issue Type: New Feature
>          Components: SQL
>    Affects Versions: 3.2.0
>            Reporter: Dhiren Navani
>            Priority: Minor
>
> Spark dataframes currently do not have semantics of forany and forall.
> Scala collections do have these semantics.
> It would be nice to have them as an API as there is potential for implementing them in unoptimized form.
>  
> E.g. forany might be implemented as df.filter(<condition>).count > 0, which is not optimal



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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