You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean R. Owen (Jira)" <ji...@apache.org> on 2021/03/12 17:59:00 UTC

[jira] [Resolved] (SPARK-34587) Replaces map and getOrElse(false/true) with exists/forall

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

Sean R. Owen resolved SPARK-34587.
----------------------------------
    Resolution: Won't Fix

> Replaces map and getOrElse(false/true) with exists/forall
> ---------------------------------------------------------
>
>                 Key: SPARK-34587
>                 URL: https://issues.apache.org/jira/browse/SPARK-34587
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Core, SQL
>    Affects Versions: 3.2.0
>            Reporter: Yang Jie
>            Priority: Trivial
>
> Code Simpilefications:
> *before*
> {code:java}
> option.map(booleanFunc).getOrElse(false)
> option.map(booleanFunc).getOrElse(true)
> {code}
> *after*
> {code:java}
> option.exists(booleanFunc)
> option.forall(booleanFunc)
> {code}



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