SSC-EWI-PG0008

The use of interval within a to_char function is not compatible with Snowflake.

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.

Severity

High

Description

The use of interval within the to_char to convert date/times data types into text is not supported in Snowflake.

Code Example

Input Code:

IN -> PostgreSQL_01.sql
SELECT to_char(interval '15h 2m 12s', 'HH24:MI:SS');

Output Code:

OUT -> PostgreSQL_01.sql
SELECT to_char(INTERVAL '15h, 2m, 12s', 'HH24:MI:SS') !!!RESOLVE EWI!!! /*** SSC-EWI-PG0008 - THE USE OF INTERVAL WITHIN TO_CHAR IS NOT SUPPORTED BY SNOWFLAKE. ***/!!!;

For more information please refer to

Recommendations

Last updated