You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Emil Ejbyfeldt (Jira)" <ji...@apache.org> on 2023/11/09 08:34:00 UTC

[jira] [Created] (SPARK-45849) Remove uneccessary toSeq when encoding Set to catalyst

Emil Ejbyfeldt created SPARK-45849:
--------------------------------------

             Summary: Remove uneccessary toSeq when encoding Set to catalyst
                 Key: SPARK-45849
                 URL: https://issues.apache.org/jira/browse/SPARK-45849
             Project: Spark
          Issue Type: Improvement
          Components: SQL
    Affects Versions: 4.0.0
            Reporter: Emil Ejbyfeldt


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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org