Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-31292

Replace toSet.toSeq with distinct for readability

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 3.0.0
    • 3.0.0
    • Spark Core, SQL
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              sekikn Kengo Seki
              sekikn Kengo Seki
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: