You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean R. Owen (Jira)" <ji...@apache.org> on 2019/11/24 22:08:00 UTC

[jira] [Updated] (SPARK-27681) Use scala.collection.Seq explicitly instead of scala.Seq alias

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

Sean R. Owen updated SPARK-27681:
---------------------------------
        Parent:     (was: SPARK-25075)
    Issue Type: Task  (was: Sub-task)

> Use scala.collection.Seq explicitly instead of scala.Seq alias
> --------------------------------------------------------------
>
>                 Key: SPARK-27681
>                 URL: https://issues.apache.org/jira/browse/SPARK-27681
>             Project: Spark
>          Issue Type: Task
>          Components: ML, MLlib, Spark Core, SQL, Structured Streaming
>    Affects Versions: 3.0.0
>            Reporter: Sean R. Owen
>            Assignee: Sean R. Owen
>            Priority: Major
>
> {{scala.Seq}} is widely used in the code, and is an alias for {{scala.collection.Seq}} in Scala 2.12. It will become an alias for {{scala.collection.immutable.Seq}} in Scala 2.13. In many cases, this will be fine, as Spark users using Scala 2.13 will also have this changed alias. In some cases it may be undesirable, as it will cause some code to compile in 2.12 but not in 2.13. In some cases, making the type {{scala.collection.Seq}} explicit so that it doesn't vary can help avoid this, so that Spark apps might cross-compile for 2.12 and 2.13 with the same source.



--
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