You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Dongjoon Hyun (Jira)" <ji...@apache.org> on 2020/06/15 02:23:00 UTC
[jira] [Commented] (SPARK-31292) Replace toSet.toSeq with distinct
for readability
[ https://issues.apache.org/jira/browse/SPARK-31292?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17135338#comment-17135338 ]
Dongjoon Hyun commented on SPARK-31292:
---------------------------------------
Let's not backport improvement next time~ :)
> 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