CREATE OR REPLACE TABLE table1 ( col1 INTEGER not null DEFAULT 50, col2 VARCHAR COLLATE 'EN-CS' DEFAULT 'hello world', col3 DATE not null DEFAULT CURRENT_TIMESTAMP() :: TIMESTAMP)COMMENT ='{"origin":"sf_sc","name":"snowconvert","version":{"major":1, "minor":0},"attributes":{"component":"transact"}}';----** SSC-FDM-TS0020 - DEFAULT CONSTRAINT MAY HAVE BEEN ADDED TO TABLE DEFINITION **--ALTER TABLE table1--ADD CONSTRAINT col1_constraint DEFAULT 50 FOR col1 ;----** SSC-FDM-TS0020 - DEFAULT CONSTRAINT MAY HAVE BEEN ADDED TO TABLE DEFINITION **--ALTER TABLE table1--ADD CONSTRAINT col2_constraint DEFAULT 'hello world' FOR col2 ;----** SSC-FDM-TS0020 - DEFAULT CONSTRAINT MAY HAVE BEEN ADDED TO TABLE DEFINITION **--ALTER TABLE table1--ADD CONSTRAINT col3_constraint DEFAULT CURRENT_TIMESTAMP() :: TIMESTAMP FOR col3 ;
Known Issues
1. ALTER TABLE DEFAULT clause is not supported in Snowflake.
The entire ALTER TABLE DEFAULT clause is commented out, since it is not supported in Snowflake.
Related EWIs
SSC-FDM-TS0020: Default constraint was commented out and may have been added to a table definition.