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

Yang Jie updated SPARK-34070:
-----------------------------
    Summary: Use `exists` method instead of `find+emptiness check`  (was: Use 
`exists` method instead of `find+isDefined` and `find+isEmpty`)

> Use `exists` method instead of `find+emptiness check`
> -----------------------------------------------------
>
>                 Key: SPARK-34070
>                 URL: https://issues.apache.org/jira/browse/SPARK-34070
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Core, SQL
>    Affects Versions: 3.2.0
>            Reporter: Yang Jie
>            Priority: Minor
>
> Semantic consistency and code Simpilefications
> before:
> {code:java}
> seq.find(p).isDefined
> seq.find(p).isEmpty
> {code}
> after:
> {code:java}
> seq.exists(p)
> !seq.exists(p)
> {code}



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

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

Reply via email to