[ 
https://issues.apache.org/jira/browse/SPARK-27683?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16838086#comment-16838086
 ] 

PJ Fanning edited comment on SPARK-27683 at 5/12/19 3:01 PM:
-------------------------------------------------------------

[~srowen] would it be possible to use the scala-collection-compat lib? It has a 
type alias `IterableOnce` that maps to `TraversableOnce` in the scala 2.11 and 
2.12 versions of the lib but to the core IterableOnce in 2.13.

[https://github.com/scala/scala-collection-compat/blob/master/compat/src/main/scala-2.11_2.12/scala/collection/compat/PackageShared.scala#L156]

[https://github.com/scala/scala-collection-compat/blob/master/compat/src/main/scala-2.13/scala/collection/compat/package.scala#L22]

The akka team created equivalent type aliases to avoid the dependency on 
scala-collection-compat and this approach could be used to add additional type 
aliases that suit Spark's requirements.

 

 


was (Author: pj.fanning):
[~srowen] would it be possible to use the scala-collection-compat lib? It has a 
type alias `IterableOnce` that maps to `TraversableOnce` in the scala 2.11 and 
2.12 versions of the lib but to the core IterableOnce in 2.13.

[https://github.com/scala/scala-collection-compat/blob/master/compat/src/main/scala-2.11_2.12/scala/collection/compat/PackageShared.scala#L156]

[https://github.com/scala/scala-collection-compat/blob/master/compat/src/main/scala-2.13/scala/collection/compat/package.scala#L22]

 

 

> Remove usage of TraversableOnce
> -------------------------------
>
>                 Key: SPARK-27683
>                 URL: https://issues.apache.org/jira/browse/SPARK-27683
>             Project: Spark
>          Issue Type: Sub-task
>          Components: ML, Spark Core, SQL, Structured Streaming
>    Affects Versions: 3.0.0
>            Reporter: Sean Owen
>            Assignee: Sean Owen
>            Priority: Major
>
> As with {{Traversable}}, {{TraversableOnce}} is going away in Scala 2.13. We 
> should use {{IterableOnce}} instead. This one is a bigger change as there are 
> more API methods with the existing signature.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to