MSCEWI4007
Performance warning - recursion for CTE not checked. Might require a recursive keyword.
This is a deprecated version of the SnowConvert documentation, please visit the official site HERE.
Severity
Low
Description
This warning is added to a Common Table Expression (CTE) when SnowConvert did not check for any recursion inside the CTE query definition.
Snowflake SQL supports the RECURSIVE keyword, intended for use along CTE queries that happen to be recursive. SnowConvert currently does not check for that recursion in order to decide if the RECURSIVE keyword should or should not be added to the result, and this warning is shown to make that clear.
Support for this validation might be done in the future as the requirements expand.
Code Example
Input Code:
Output Code:
Recommendations
Not having the RECURSIVE keyword does not impact the result of the query directly, but may impact the way Snowflake uses resources for its execution. We recommend checking Snowflake's features involving CTEs and contacting us if you would like the RECURSIVE keyword to be automatically added to the CTE queries that support it.
If you need more support, you can email us at snowconvert-support@snowflake.com
Last updated