SSC-EWI-OR0103
For Loop Format Is Currently Not Supported By Snowflake Scripting
Important Notice: Migration of Documentation Website
Please be advised that our documentation website is currently undergoing a migration to a new platform. To ensure you have access to the most up-to-date information, we kindly request that you visit our new documentation website located at:
Official Snowflake Snowconvert Documentation
For any immediate assistance or if you encounter any issues, please contact our support team at [email protected].
Thank you for your understanding.
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_controlvalues_of_controlindices_of_controlpairs_of_control
cursor_iteration_control is currently marked as not supported. Removing parenthesis from the expression should transform it as a CURSOR FOR LOOP.
Original:
FOR i IN (cursor_variable) LOOP NULL; END LOOP;
Should be changed to:
FOR i IN cursor_variable LOOP NULL; END LOOP;
Example Code
Input Code Oracle:
Output Code:
Recommendations
Rewrite the
FOR LOOPcondition or use a different kind ofLOOPto simulate the behavior.If you need more support, you can email us at [email protected]
Last updated
