chenhao-db opened a new pull request, #55599:
URL: https://github.com/apache/spark/pull/55599

   ### What changes were proposed in this pull request?
   
   Add a new expression `is_valid_variant`. Returns true if the variant is 
valid, false if it is malformed.
   
   ### Why are the changes needed?
   
   This is useful when the data source is not completely known. Other variant 
expressions will throw a `MALFORMED_VARIANT` exception if any row is malformed, 
which can be inconvenient to use when only a subset of rows contains malformed 
variant. This new expression will return a boolean instead of throwing 
exceptions.
   
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes. A new SQL expression is added.
   
   ### How was this patch tested?
   
   Unit tests.
   
   ### 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