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

   ### What changes were proposed in this pull request?
   
   The `try_parse_json` expression added in 
https://github.com/apache/spark/pull/46141 declares improper output 
nullability: the `try_` version's output must be marked as nullable. This PR 
corrects the nullability and adds a test.
   
   ### Why are the changes needed?
   
   Incorrectly declaring an expression's output as non-nullable when it is 
actually nullable may lead to crashes.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   New unit test cases.
   
   
   ### 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]

Reply via email to