SSC-EWI-PG0008

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

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