yaooqinn opened a new pull request, #47887: URL: https://github.com/apache/spark/pull/47887
### What changes were proposed in this pull request? Following the work of SPARK-48857 for CSV, this PR brings it to JSON options for reading and writing json files. ### Why are the changes needed? To make the charset list consistent across different platforms/JDKs and different plain text file sources ### Does this PR introduce _any_ user-facing change? Yes, - For an invalid charset to both JDK and Spark definitions, UnsupportedCharsetException is replaced by INVALID_PARAMETER_VALUE.CHARSET error - For an invalid charset to Spark definitions only, INVALID_PARAMETER_VALUE.CHARSET will be raised instead of success. legacyJavaCharsets is provided to restore the old behavior ### How was this patch tested? Modified tests ### 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]
