Description
When building with Scala 2.13 many test classes produce warnings like:
[warn] /home/runner/work/spark/spark/sql/core/src/test/scala/org/apache/spark/sql/execution/BaseScriptTransformationSuite.scala:562:11: [deprecation @ | origin= | version=2.13.0] symbol literal is deprecated; use Symbol("d") instead [warn] 'd.cast("string"), [warn] ^ [warn] /home/runner/work/spark/spark/sql/core/src/test/scala/org/apache/spark/sql/execution/BaseScriptTransformationSuite.scala:563:11: [deprecation @ | origin= | version=2.13.0] symbol literal is deprecated; use Symbol("e") instead [warn] 'e.cast("string")).collect())
For easier migration to Scala 3.x later it would be good to fix this warnings!
Attachments
Issue Links
- is cloned by
-
SPARK-38661 [TESTS] Replace 'abc & Symbol("abc") symbols with $"abc" in tests
- Resolved
- is related to
-
SPARK-45627 Fix `symbol literal is deprecated`
- Resolved
- links to