SSC-EWI-PG0012

NOT VALID constraint option is not supported by Snowflake.

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

Last updated