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

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

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

Takeshi Yamamuro resolved SPARK-31292.
--------------------------------------
    Fix Version/s: 3.0.0
         Assignee: Kengo Seki
       Resolution: Fixed

Resolved by [https://github.com/apache/spark/pull/28062]

> 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
>            Assignee: Kengo Seki
>            Priority: Trivial
>             Fix For: 3.0.0
>
>
> 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