spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Spark (Jira)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-30010) Remove deprecated SparkConf.setAll(Traversable)
Date Wed, 01 Jul 2020 17:45:00 GMT

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

Apache Spark commented on SPARK-30010:
--------------------------------------

User 'srowen' has created a pull request for this issue:
https://github.com/apache/spark/pull/28971

> 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
>            Priority: Minor
>
> 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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message