We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Numerous SQL dialects have some way of expressing TRY_CAST()
TRY_CAST()
SAFE_CAST
CAST(x AS y DEFAULT NULL ON CONVERSION ERROR)
The text was updated successfully, but these errors were encountered:
In some RDBMS it might be possible to emulate some pairs of data type conversions like this, e.g. from VARCHAR to INT:
VARCHAR
INT
CASE WHEN vc LIKE_REGEXP '-?[0-9]+' THEN CAST(vc AS INT) END
I might do this in a future release:
Sorry, something went wrong.
[#14799] Add support for TRY_CAST()
cb9ff43
No branches or pull requests
Numerous SQL dialects have some way of expressing
TRY_CAST()
SAFE_CAST
: https://cloud.google.com/bigquery/docs/reference/standard-sql/functions-and-operators#safe_castingCAST(x AS y DEFAULT NULL ON CONVERSION ERROR)
Tasks
The text was updated successfully, but these errors were encountered: