SSC-EWI-PG0012

NOT VALID constraint option is not supported by 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.

Description

The NOT VALID constraint option is used in the context of adding or altering a constraint to indicate that the constraint should be added or modified without checking the existing data for compliance with the constraint. This clause is not supported by Snowflake.

Code Example

Input Code:

IN -> PostgreSQL_01.sql
ALTER TABLE Table1 *
ADD CONSTRAINT const UNIQUE (zip) NOT VALID;

Output Code:

OUT -> PostgreSQL_01.sql
ALTER TABLE Table1
ADD CONSTRAINT const UNIQUE (zip)
                                  !!!RESOLVE EWI!!! /*** SSC-EWI-PG0012 - NOT VALID CONSTRAINT OPTION IS NOT SUPPORTED BY SNOWFLAKE. ***/!!! NOT VALID;

Recommendations

  • No additional user actions are required.

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

Last updated