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

[jira] [Created] (SPARK-39147) Code simplification, use count() instead of filter().size, etc.

morvenhuang created SPARK-39147:
-----------------------------------

             Summary: Code simplification, use count() instead of filter().size, etc.
                 Key: SPARK-39147
                 URL: https://issues.apache.org/jira/browse/SPARK-39147
             Project: Spark
          Issue Type: Improvement
          Components: SQL
    Affects Versions: 3.2.1
            Reporter: morvenhuang


Use count() instead of filter().size, use df.count() instead of df.collect().size.



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