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

   ### What changes were proposed in this pull request?
   This PR improves messages for ANSI related issues for ParseUrl. It also adds 
try_parse_url expressions that sets failOnError to false by default.
   
   
   ### Why are the changes needed?
   INVALID_URL contains suggested fix for turning off ANSI mode. Now that in 
Spark 4.0.0 we have moved to ANSI mode on by default, we want to keep 
suggestions of this kind to the minimum. There exist implementations of `try_*` 
functions which provide safe way to get behavior as for ANSI mode off and 
suggestions of this kind should be sufficient.
   
   In this case, try expressions were missing so new expressions were added to 
patch up the missing implementations.
   
   ### Does this PR introduce _any_ user-facing change?
   Yes, new suggestions are added to do try_parse_url. 
   
   
   ### How was this patch tested?
   Tests added. 
   
   
   ### 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