SSC-EWI-OR0029

DEFAULT ON CONVERSION ERROR is not supported.

Important Notice: Migration of Documentation Website

Please be advised that our documentation website is currently undergoing a migration to a new platform. To ensure you have access to the most up-to-date information, we kindly request that you visit our new documentation website located at:

Official Snowflake Snowconvert Documentation

For any immediate assistance or if you encounter any issues, please contact our support team at [email protected].

Thank you for your understanding.

Description

Default on conversion error not supported in Snowflake

Example Code

Input Code:

IN -> Oracle_01.sql
SELECT TO_NUMBER('2,00' DEFAULT 0 ON CONVERSION ERROR) "Value" FROM DUAL;

Output Code:

OUT -> Oracle_01.sql
SELECT
PUBLIC.TO_NUMBER_UDF('2,00', 0) "Value" FROM DUAL;

Recommendations

  • You might create UDF to emulate the behavior of DEFAULT value ON CONVERSION ERROR.

  • If you need more support, you can email us at [email protected]

Last updated