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

   ### What changes were proposed in this pull request?
   
   Add the `:::` (triple colon) as syntactic sugar for `try_cast`.
   
   ### Why are the changes needed?
   
   This syntactic sugar makes it easier/simpler to call `try_cast`. Now, 
something like this is possible:
   
   ```
   > select '123.456':::int;
     NULL
   ```
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes, this is new syntax. It enables using `:::` as shorthand for `try_cast`.
   
   ### How was this patch tested?
   
   New unit tests and sql 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