Description
This ticket is a follow up of SPARK-38351.
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!
Also as suggested by https://github.com/HeartSaVioR it would be good to use Spark's $"abc" syntax for columns.
Attachments
Issue Links
- is a clone of
-
SPARK-38351 [TESTS] Replace 'abc symbols with Symbol("abc") in tests
- Resolved
- links to