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

Remove uneccessary toSeq when encoding Set to catalyst

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 4.0.0
    • None
    • SQL

    Description

      Currently when encoding Sets to catalyst we first convert them into a Seq. There is no good reason to do this as the interface we are targeting for encoding is only `Iterable` which is implemented by Set. So by using Iterable instead of Seq in some places we should be able to avoid this extra copy when encoding Sets.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              eejbyfeldt Emil Ejbyfeldt
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: