You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### What changes were proposed in this pull request?
JsonNode.fields is deprecated, and is supposed to be replaced as JsonNode.properties.
### Why are the changes needed?
Without the fix, there're warning during compile:
[warn] /path/to/spark/core/src/main/scala/org/apache/spark/util/JsonProtocol.scala:1026:10: method fields in class JsonNode is deprecated
[warn] Applicable -Wconf / nowarn filters for this warning: msg=<part of the message>, cat=deprecation, site=org.apache.spark.util.JsonProtocol.taskResourceRequestMapFromJson, origin=com.fasterxml.jackson.databind.JsonNode.fields
[warn] json.fields().asScala.collect { case field =>
[warn] ^
### Does this PR introduce _any_ user-facing change?
No, it only fixes compilation warning.
### How was this patch tested?
after the fix, no such warning during compilation. all ut passes.
### Was this patch authored or co-authored using generative AI tooling?
No
Closesapache#51011 from yuexing/SPARK-52299.
Authored-by: xingyue <xingyue@baidu.com>
Signed-off-by: yangjie01 <yangjie01@baidu.com>
0 commit comments