You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2021/01/11 11:21:00 UTC
[jira] [Assigned] (SPARK-34070) Use exists method to simplify 'find
+ emptiness check' on Seq
[ https://issues.apache.org/jira/browse/SPARK-34070?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Apache Spark reassigned SPARK-34070:
------------------------------------
Assignee: (was: Apache Spark)
> Use exists method to simplify 'find + emptiness check' on Seq
> -------------------------------------------------------------
>
> 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
> or
> seq.find(p).isEmpty
> {code}
> after:
> {code:java}
> seq.exists(p)
> or
> !seq.exists(p)
> {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