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

Sean R. Owen commented on SPARK-30010:
--------------------------------------

Right, both are in 3.0.x, but the old one is in 2.x only, and the new one is in 
3.1.x only. You can work vs 2.x and 3.0.x simultaneously right now

I'm not against adding the new method to 2.x as well, as 2.13 compatibility is 
not a concern there, and I think it's not ambiguous?

It's not in release notes as 3.1.x isn't released yet, but I'll mark it for 
3.1.x release notes.

> Remove deprecated SparkConf.setAll(Traversable)
> -----------------------------------------------
>
>                 Key: SPARK-30010
>                 URL: https://issues.apache.org/jira/browse/SPARK-30010
>             Project: Spark
>          Issue Type: Sub-task
>          Components: Spark Core
>    Affects Versions: 3.0.0
>            Reporter: Sean R. Owen
>            Assignee: Sean R. Owen
>            Priority: Minor
>             Fix For: 3.1.0
>
>
> SparkConf has the following overloads, which were also driven by Scala 
> version compatibility:
> {code}
>   /** Set multiple parameters together */
>   def setAll(settings: Iterable[(String, String)]): SparkConf = {
>     settings.foreach { case (k, v) => set(k, v) }
>     this
>   }
>   /**
>    * Set multiple parameters together
>    */
>   @deprecated("Use setAll(Iterable) instead", "3.0.0")
>   def setAll(settings: Traversable[(String, String)]): SparkConf = {
>     settings.foreach { case (k, v) => set(k, v) }
>     this
>   }
> {code}
> However this becomes ambiguous in Scala 2.13. We'll just have to remove the 
> second one.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to