MSCEWI3103

For Loop Format Is Currently Not Supported By Snowflake Scripting

Severity

High

Description

Oracle allows different types of conditions for a FOR LOOP. It supports boolean expressions, collections, records... However, Snowflake scripting only supports FOR LOOP with defined integers as bounds. All other formats are marked as not supported and require additional manual effort to be transformed.

Oracle iteration control clauses that are not supported in Snowflake FOR LOOP:

  • single_expression_control

  • values_of_control

  • indices_of_control

  • pairs_of_control

Example Code

Input Code:

Output Code:

Recommendations

  • Rewrite the FOR LOOP condition or use a different kind of LOOP to simulate the behavior.

  • If you need more support, you can email us at [email protected]

Last updated