-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Add the TRY
expression
#15939
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add the TRY
expression
#15939
Conversation
…o do it this way?
@Mytherin I had the idea of turning the result type of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! Looks good - some comments:
…ld of the TRY operator
… using .ok we can replace the error message with a NULL
…message, using .ok we can replace the error message with a NULL" This reverts commit aa41ef0.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fixes! Looks good - some minor comments remain otherwise this is good to go
Thanks! |
Add the `TRY` expression (duckdb/duckdb#15939)
Add the `TRY` expression (duckdb/duckdb#15939)
Add the `TRY` expression (duckdb/duckdb#15939)
Add the `TRY` expression (duckdb/duckdb#15939)
Add the `TRY` expression (duckdb/duckdb#15939)
Add the `TRY` expression (duckdb/duckdb#15939)
This PR fixes https://github.com/duckdblabs/duckdb-internal/issues/3946
Similar to its younger brother
TRY_CAST
, theTRY
expression will prevent errors from interrupting execution, instead turning the result intoNULL
.