martin-g opened a new pull request #35976:
URL: https://github.com/apache/spark/pull/35976
### What changes were proposed in this pull request?
Replace symbols like 'abc and Symbol("abc") (where possible) with the more
verbose $"abc" in the test code.
### Why are the changes needed?
This is a follow-up of #35560
Building with Scala 2.13 produces a lot of warnings like the following ones:
```
[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())
```
This should make it easier to upgrade to Scala 3 later.
### Does this PR introduce _any_ user-facing change?
No! The PR touches only test classes!
### How was this patch tested?
The build at CI must be green!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]