dtenedor opened a new pull request, #37229: URL: https://github.com/apache/spark/pull/37229
### What changes were proposed in this pull request? Fix bug in SQL string generation for literal values of ARRAY, STRUCT, MAP types with DEFAULT values with NULL field(s). Specifically, prevent Scala `MatchError`s from getting raised when attempting to call the `sql` method of the `Literal` expression for such values when one of their fields is `null`. ### Why are the changes needed? This fixes a bug by preventing exceptions from being inappropriately raised. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? This PR adds new unit test coverage. -- 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]
