SSC-EWI-PG0001

Age is not supported on Snowflake

circle-info

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 Documentationarrow-up-right

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

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:

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 Datediffarrow-up-right.

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

Last updated