SSC-EWI-PG0012

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

Description

The NOT VALIDarrow-up-right 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

Last updated