CREATE OR REPLACETABLEPUBLIC.table1 ( col1 INTEGERnot nullDEFAULT50, col2 VARCHARCOLLATE'EN-CS'DEFAULT'hello world', col3 DATEnot null-- ** MSC-ERROR - MSCEWI1088 - EXPRESSIONS LIKE FUNCTION CALLS, VARIABLES, OR NAMED CONSTANTS ARE NOT SUPPORTED ON DEFAULT OPTION IN SNOWFLAKE **
-- DEFAULT CURRENT_TIMESTAMP() :: TIMESTAMP);-- ** MSC-ERROR - MSCEWI4058 - ONE OR MORE OF THE TABLE ELEMENT PARTS ARE NOT SUPPORTED IN SNOWFLAKE: DEFAULT TABLE CONSTRAINT **
--ALTER TABLE PUBLIC.table1--ADD CONSTRAINT col1_constraint DEFAULT 50 FOR col1 ;-- ** MSC-ERROR - MSCEWI4058 - ONE OR MORE OF THE TABLE ELEMENT PARTS ARE NOT SUPPORTED IN SNOWFLAKE: DEFAULT TABLE CONSTRAINT **
--ALTER TABLE PUBLIC.table1--ADD CONSTRAINT col2_constraint DEFAULT 'hello world' FOR col2 ;-- ** MSC-ERROR - MSCEWI4058 - ONE OR MORE OF THE TABLE ELEMENT PARTS ARE NOT SUPPORTED IN SNOWFLAKE: DEFAULT TABLE CONSTRAINT **
--ALTER TABLE PUBLIC.table1--ADD CONSTRAINT col3_constraint DEFAULT getdate() 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
MSCEWI4058: One or more table elements parts are not supported in Snowflake.
MSCEWI1088: Expressions like function calls, variables, or named constants are not allowed on default option in Snowflake