MaxGekk opened a new pull request #30031: URL: https://github.com/apache/spark/pull/30031
### What changes were proposed in this pull request? In the PR, I propose to restrict the partial result feature only by root JSON objects. ### Why are the changes needed? 1. To not raise exception to users in the PERMISSIVE mode 2. To have the same behaviour as Spark 2.4.x 3. Current implementation of partial result is supposed to work only for root (top-level) JSON objects, and not tested for bad nested complex JSON fields. ### Does this PR introduce _any_ user-facing change? Yes ### How was this patch tested? Added a test to `JsonFunctionsSuite`. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
