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

   ### What changes were proposed in this pull request?
   This PR updates the suggested fix of `INVALID_URL` error to use 
`try_parse_url` function added in 
[this](https://github.com/apache/spark/pull/48500) PR instead of turning off 
ANSI mode. 
   
   
   ### 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. 
   
   
   ### How was this patch tested?
   There are tests that check error messages. 
   
   
   ### 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