Skip to content
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 support for TRY_CAST() #14799

Closed
9 tasks done
lukaseder opened this issue Mar 15, 2023 · 1 comment
Closed
9 tasks done

Add support for TRY_CAST() #14799

lukaseder opened this issue Mar 15, 2023 · 1 comment

Comments

@lukaseder
Copy link
Member

lukaseder commented Mar 15, 2023

Numerous SQL dialects have some way of expressing TRY_CAST()

Tasks

  • Support the above dialects
  • Parser support
@lukaseder
Copy link
Member Author

In some RDBMS it might be possible to emulate some pairs of data type conversions like this, e.g. from VARCHAR to INT:

CASE WHEN vc LIKE_REGEXP '-?[0-9]+' THEN CAST(vc AS INT) END

I might do this in a future release:

@lukaseder lukaseder added this to To do in 3.19 Other improvements via automation Sep 4, 2023
lukaseder added a commit that referenced this issue Sep 4, 2023
3.19 Other improvements automation moved this from To do to Done Sep 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests

1 participant