SSC-FDM-TS0031

SET ANSI_WARNINGS ON statement is commented out, which Snowflake generally adheres to ANSI-standard behaviors.

Description

Snowflake generally behaves as if ANSI_WARNINGS is ON by default, especially concerning error handling for arithmetic overflow, division by zero, and string truncation. You typically don't need to explicitly "set" an equivalent to ANSI_WARNINGS in Snowflake. Therefore, when SnowConvert encounters a SET ANSI_WARNINGS ON statement, it adds this FDM and comments it out.

Code example

Input Code:

IN -> SqlServer_01.sql
SET ANSI_WARNINGS ON;

OUTPUT CODE

OUT -> SqlServer_01.sql
----** SSC-FDM-TS0031 - SET ANSI_WARNINGS ON STATEMENT IS COMMENTED OUT, WHICH SNOWFLAKE GENERALLY ADHERES TO ANSI-STANDARD BEHAVIORS. **
--SET ANSI_WARNINGS ON

Recommendations

Last updated