You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Yang Jie (Jira)" <ji...@apache.org> on 2023/10/27 08:35:00 UTC
[jira] [Updated] (SPARK-45701) Clean up the deprecated API usage related to `SetOps`
[ https://issues.apache.org/jira/browse/SPARK-45701?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yang Jie updated SPARK-45701:
-----------------------------
Description:
* method - in trait SetOps is deprecated (since 2.13.0)
* method – in trait SetOps is deprecated (since 2.13.0)
* method + in trait SetOps is deprecated (since 2.13.0)
* method retain in trait SetOps is deprecated (since 2.13.0)
{code:java}
[warn] /Users/yangjie01/SourceCode/git/spark-mine-sbt/core/src/main/scala/org/apache/spark/storage/BlockReplicationPolicy.scala:70:32: method + in trait SetOps is deprecated (since 2.13.0): Consider requiring an immutable Set or fall back to Set.union
[warn] Applicable -Wconf / @nowarn filters for this warning: msg=<part of the message>, cat=deprecation, site=org.apache.spark.storage.BlockReplicationUtils.getSampleIds.indices.$anonfun, origin=scala.collection.SetOps.+, version=2.13.0
[warn] if (set.contains(t)) set + i else set + t
[warn] ^ {code}
was:
* method - in trait SetOps is deprecated (since 2.13.0)
* method – in trait SetOps is deprecated (since 2.13.0)
* method + in trait SetOps is deprecated (since 2.13.0)
{code:java}
[warn] /Users/yangjie01/SourceCode/git/spark-mine-sbt/core/src/main/scala/org/apache/spark/storage/BlockReplicationPolicy.scala:70:32: method + in trait SetOps is deprecated (since 2.13.0): Consider requiring an immutable Set or fall back to Set.union
[warn] Applicable -Wconf / @nowarn filters for this warning: msg=<part of the message>, cat=deprecation, site=org.apache.spark.storage.BlockReplicationUtils.getSampleIds.indices.$anonfun, origin=scala.collection.SetOps.+, version=2.13.0
[warn] if (set.contains(t)) set + i else set + t
[warn] ^ {code}
> Clean up the deprecated API usage related to `SetOps`
> -----------------------------------------------------
>
> Key: SPARK-45701
> URL: https://issues.apache.org/jira/browse/SPARK-45701
> Project: Spark
> Issue Type: Sub-task
> Components: Spark Core, SQL
> Affects Versions: 4.0.0
> Reporter: Yang Jie
> Priority: Major
>
> * method - in trait SetOps is deprecated (since 2.13.0)
> * method – in trait SetOps is deprecated (since 2.13.0)
> * method + in trait SetOps is deprecated (since 2.13.0)
> * method retain in trait SetOps is deprecated (since 2.13.0)
>
> {code:java}
> [warn] /Users/yangjie01/SourceCode/git/spark-mine-sbt/core/src/main/scala/org/apache/spark/storage/BlockReplicationPolicy.scala:70:32: method + in trait SetOps is deprecated (since 2.13.0): Consider requiring an immutable Set or fall back to Set.union
> [warn] Applicable -Wconf / @nowarn filters for this warning: msg=<part of the message>, cat=deprecation, site=org.apache.spark.storage.BlockReplicationUtils.getSampleIds.indices.$anonfun, origin=scala.collection.SetOps.+, version=2.13.0
> [warn] if (set.contains(t)) set + i else set + t
> [warn] ^ {code}
--
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