[ https://issues.apache.org/jira/browse/SPARK-34275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17273301#comment-17273301 ]
Apache Spark commented on SPARK-34275: -------------------------------------- User 'LuciferYang' has created a pull request for this issue: https://github.com/apache/spark/pull/31374 > Replaces filter and size with count > ----------------------------------- > > Key: SPARK-34275 > URL: https://issues.apache.org/jira/browse/SPARK-34275 > Project: Spark > Issue Type: Improvement > Components: ML, Spark Core, SQL > Affects Versions: 3.2.0 > Reporter: Yang Jie > Priority: Minor > > Use {{count}} to simplify {{find + size(or length) operation}}, it's > semantically consistent, but looks simpler. > *Before* > {code:java} > seq.filter(p).size{code} > *After* > {code:java} > seq.count(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