Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-49638][SQL] Remove the ANSI config suggestion in INVALID_URL
### 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](#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. Closes #48616 from jovanm-db/improvedError. Authored-by: Jovan Markovic <[email protected]> Signed-off-by: Max Gekk <[email protected]>
- Loading branch information