JoshRosen opened a new pull request, #39973:
URL: https://github.com/apache/spark/pull/39973

   ### What changes were proposed in this pull request?
   
   This PR fixes a regression introduced in #39972 which broke JsonProtocol's 
ability to parse `null` string values: the old Json4S-based parser would 
correctly parse null literals, whereas the new code rejects them via an 
overly-strict type check.
   
   This PR solves this problem by relaxing the type checking in `extractString` 
so that `null` literals in JSON can be parsed as `null` strings.
   
   ### Why are the changes needed?
   
   Fix a regression which prevents the history server from parsing certain 
types of event logs which contain null strings, including stacktraces 
containing generated code frames and ExceptionFailure messages where the 
exception message is `null`.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   
   ### How was this patch tested?
   
   Added new unit test in JsonProtocolSuite.


-- 
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]

Reply via email to