Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-45314 Drop Scala 2.12 and make Scala 2.13 by default
  3. SPARK-45692

Clean up the deprecated API usage related to `Iterator/Iterable/IterableOps`

    XMLWordPrintableJSON

Details

    Description

      • method seq in trait Iterator is deprecated (since 2.13.0)
      • method toIterable in trait Iterable is deprecated (since 2.13.7)
      • method seq in trait Iterable is deprecated (since 2.13.0)
      • method toTraversable in trait IterableOps is deprecated (since 2.13.0)

       

      [warn] /Users/yangjie01/SourceCode/git/spark-mine-sbt/mllib/src/test/scala/org/apache/spark/ml/feature/NormalizerSuite.scala:79:55: method seq in trait Iterable is deprecated (since 2.13.0): Iterable.seq always returns the iterable itself
      [warn] Applicable -Wconf / @nowarn filters for this warning: msg=<part of the message>, cat=deprecation, site=org.apache.spark.ml.feature.NormalizerSuite, origin=scala.collection.Iterable.seq, version=2.13.0
      [warn]     val dataFrame: DataFrame = data.zip(l2Normalized).seq.toDF("features", "expected") 

      Attachments

        Activity

          People

            LuciferYang Yang Jie
            LuciferYang Yang Jie
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: