SSC-EWI-TD0001
Recursive forward alias error.
Some parts in the output code are omitted for clarity reasons.
Severity
Low
Description
This EWI is shown whenever SnowConvert detects recursion within aliased expressions, therefore being unable to execute the Forward Alias transformation required for the correct functionality of aliases within Snowflake environment.
A recursive alias happens when an aliased expression contains another alias, and the second aliased expression contains the first alias. This may not be as trivial as the example shows, since the recursion can happen further down the line in a transitive way.
Example Code
Note: Recursive aliases are not supported in Snowflake, however, some simple instances are.
Note that recursive alias is not supported in Snowflake, however, some simple instances are. Check the examples below.
The following example code works in Snowflake after migration:
Teradata:
Snowflake Scripting:
However, the following example code does not work:
Teradata:
Snowflake Scripting:
Recommendations
Review your code and make sure recursive forward aliases are not present. The EWI shows the name of the first instance of an alias that has recursive references, but that does not mean that is the only one that has them in your code.
If you need more support, you can email us at snowconvert-support@snowflake.com
Last updated