You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Kengo Seki (Jira)" <ji...@apache.org> on 2020/03/28 13:26:00 UTC

[jira] [Created] (SPARK-31292) Replace toSet.toSeq with distinct for readability

Kengo Seki created SPARK-31292:
----------------------------------

             Summary: Replace toSet.toSeq with distinct for readability
                 Key: SPARK-31292
                 URL: https://issues.apache.org/jira/browse/SPARK-31292
             Project: Spark
          Issue Type: Improvement
          Components: Spark Core, SQL
    Affects Versions: 3.0.0
            Reporter: Kengo Seki


Some classes use {{toSet.toSeq}} to make the elements of a sequence unique, but it's a bit verbose. Using {{distinct}} instead is easier to understand.



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