MSCEWI2001
Recursive forward alias error.
This is a deprecated version of the SnowConvert documentation, please visit the official site HERE.
Severity
Low
Description
This message 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.
Code Example
Input Code:
Output Code:
Note: Recursive alias 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 examples below.
The following example code works in Snowflake after migration:
Input Code:
Output Code:
This example code does not work:
Input Code:
Output Code:
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