LuciferYang opened a new pull request, #49469: URL: https://github.com/apache/spark/pull/49469
### What changes were proposed in this pull request? This pr aims to replace `ScalaObjectMapper` with `ClassTagExtensions` to fix compilation warning: ``` [warn] /Users/yangjie01/SourceCode/git/spark-mine-sbt/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/catalog/UserDefinedFunction.scala:121:40: trait ScalaObjectMapper in package scala is deprecated (since 2.12.1): ScalaObjectMapper is deprecated because Manifests are not supported in Scala3, you might want to use ClassTagExtensions as a replacement [warn] Applicable -Wconf / @nowarn filters for this warning: msg=<part of the message>, cat=deprecation, site=org.apache.spark.sql.catalyst.catalog.UserDefinedFunction.getObjectMapper.mapper, origin=com.fasterxml.jackson.module.scala.ScalaObjectMapper, version=2.12.1 [warn] val mapper = new ObjectMapper with ScalaObjectMapper ``` the change is refer to: https://github.com/FasterXML/jackson-module-scala/blob/ae04d9f16a2524123c2c083bf981cecdbfc7c72f/src/main/scala-2.%2B/com/fasterxml/jackson/module/scala/ScalaObjectMapper.scala#L23-L24 ``` @deprecated("ScalaObjectMapper is deprecated because Manifests are not supported in Scala3, you might want to use ClassTagExtensions as a replacement", "2.12.1") trait ScalaObjectMapper { ``` ### Why are the changes needed? Clean up the use of deprecated APIs. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Pass GitHub Actions ### Was this patch authored or co-authored using generative AI tooling? No -- 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]
