SSC-EWI-OR0020

Negative values not supported for function.

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

Medium

Description

Snowflake does not support negative values for the function, then this will cause different behavior when executed.

Example Code

Input Code:

IN -> Oracle_01.sql
SELECT INSTR('CORPORATE FLOOR','OR', -3, 2) FROM DUAL;

Output Code:

OUT -> Oracle_01.sql
SELECT
REGEXP_INSTR('CORPORATE FLOOR','OR', -3, 2) !!!RESOLVE EWI!!! /*** SSC-EWI-OR0020 - NEGATIVE VALUES NOT SUPPORTED FOR FUNCTION ***/!!! FROM DUAL;

Recommendations

  • Create a User Defined Function that can handle the negative parameter or look for another alternative.

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

Last updated