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

   ### What changes were proposed in this pull request?
   This PR adds alias for calling `try_to_date`, this function behaves the same 
as `to_date`, but returns NULL on errors.
   
   
   ### Why are the changes needed?
   As part of https://github.com/apache/spark/pull/49227 we have changed the 
error message for ToTimestamp when we call the function `to_date` to return 
`try_to_date` suggestion. This suggestion is not available and this PR fixes 
the issue.
   
   
   ### Does this PR introduce _any_ user-facing change?
   Yes, we are adding new function call.
   
   
   ### How was this patch tested?
   Tests added in docs.
   
   
   ### 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