MSCEWI1069
User defined function inner logic was transformed to a single Common Table Expression
This is a deprecated version of the SnowConvert documentation, please visit the official site HERE.
Severity
Low
Description
Snowflake user defined functions do not support multiple statements like DECLARE
, SET
, IF/ELSE
, etc in their bodies. The approach of using a single COMMON TABLE EXPRESSION, helps to keep the functional equivalence of the original user-defined function and preserve its functionallity when it is called inside queries.
Example Code
SQL Server
Snowflake
Recommendations
FIf you need more support, you can email us at snowconvert-support@snowflake.com
Last updated