This is a deprecated version of the SnowConvert documentation, please visit the official site HERE.
Severity
Low
Description
Snowflake statements could remove some options when they are handled by the conversion rule. So it will be removed from the output code but the functionality is equivalent.
Example code
Input Code:
-- Case 1:TRUNCATE only table_base2 RESTARTIDENTITY CASCADE;-- Case 2:truncatetable table_inherit_and_generated RESTARTIDENTITY CASCADE;
Output Code:
-- Case 1:--** MSC-WARNING - MSCEWI1102 - REMOVED ONLY OPTION FROM CODE, ALREADY HANDLED IN CONVERSION TO SNOWFLAKE **--** MSC-WARNING - MSCEWI1102 - REMOVED CASCADE OPTION FROM CODE, ALREADY HANDLED IN CONVERSION TO SNOWFLAKE **--** MSC-WARNING - MSCEWI1102 - REMOVED RESTART IDENTITY OPTION FROM CODE, ALREADY HANDLED IN CONVERSION TO SNOWFLAKE **
TRUNCATE table_base2;-- Case 2:--** MSC-WARNING - MSCEWI1102 - REMOVED CASCADE OPTION FROM CODE, ALREADY HANDLED IN CONVERSION TO SNOWFLAKE **--** MSC-WARNING - MSCEWI1102 - REMOVED RESTART IDENTITY OPTION FROM CODE, ALREADY HANDLED IN CONVERSION TO SNOWFLAKE **
TRUNCATETABLE table_with_foreign_key_2;CREATE OR REPLACESEQUENCEtable_inherit_and_generated_didSTART1 CLONE table_inherit_and_generated_did;ALTERTABLE table_inherit_and_generated ALTER did SETDEFAULT table_inherit_and_generated_did.NEXTVAL;TRUNCATETABLE table_inherit_and_generated;