advancedxy opened a new pull request #34455: URL: https://github.com/apache/spark/pull/34455
logic with JacksonParser#parse method ### What changes were proposed in this pull request? Change `JsonInferSchema#infer`'s exception handle logic to be aligned with `JacksonParser#parse` ### Why are the changes needed? To reduce behavior inconsistency, users can have the same expectation for schema infer and json parse when dealing with some malformed input. ### Does this PR introduce _any_ user-facing change? Yes. Before this patch, json's inferring schema could be failed for some malformed input but succeeded when parsing. After this patch, they have the same exception handle logic. ### How was this patch tested? Added one new test and modify one exist test to cover the new case. -- 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]
