You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Huaxin Gao (Jira)" <ji...@apache.org> on 2022/05/06 18:33:00 UTC

[jira] [Resolved] (SPARK-39116) Replcace double negation in exists with forall

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

Huaxin Gao resolved SPARK-39116.
--------------------------------
    Fix Version/s: 3.4.0
         Assignee: Yang Jie  (was: Apache Spark)
       Resolution: Fixed

> Replcace double negation in exists with forall
> ----------------------------------------------
>
>                 Key: SPARK-39116
>                 URL: https://issues.apache.org/jira/browse/SPARK-39116
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 3.4.0
>            Reporter: Yang Jie
>            Assignee: Yang Jie
>            Priority: Minor
>             Fix For: 3.4.0
>
>
> Some code in Spark as follows:
> {code:java}
> !Seq(1, 2).exists(x => !condition(x)) {code}
> can replace with 
> {code:java}
> Seq(1, 2).forall(x => condition(x)) {code}
> for code simplification
>  



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

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