SSC-EWI-PG0001

Age is not supported on 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 snowconvert-support@snowflake.com.

Thank you for your understanding.

Severity

Medium

Description

This error is added because SnowConvert does not support the age() functionality.

Code Example

Input Code:

IN -> PostgreSQL_01.sql
SELECT
   age(date1::date, date2::date)
FROM
   Table1;

Output Code:

OUT -> PostgreSQL_01.sql
--** SSC-FDM-0007 - MISSING DEPENDENT OBJECTS "age", "Table1" **
SELECT
   !!!RESOLVE EWI!!! /*** SSC-EWI-PG0001 - AGE IS NOT SUPPORTED ON SNOWFLAKE. ***/!!!
   AGE(date1::date, date2::date)
FROM
   Table1;

Recommendations

  • The Datediff time function can solve some cases where the objective of the query is to obtain a specific range of values but this has to be handled manually for each scenario. For more information please refer to the Snowflake documentation about Datediff.

  • If you need more support, you can email us at snowconvert-support@snowflake.com

Last updated