SSC-FDM-TD0008

When NVP_UDF fourth parameter is non-literal and it contains a backslash, that backslash needs to be escaped.

Description

Non-literal delimiters with spaces need their backslash escaped in snowflake.

Example code

Input code

IN -> Teradata_01.sql
SELECT NVP('store = whole foods&&store: ?Bristol farms','store', '&&', valueDelimiter, 2);

Output code

OUT -> Teradata_01.sql
SELECT
PUBLIC.NVP_UDF('store = whole foods&&store: ?Bristol farms', 'store', '&&', valueDelimiter, 2) /*** SSC-FDM-TD0008 - WHEN NVP_UDF FOURTH PARAMETER IS NON-LITERAL AND IT CONTAINS A BACKSLASH, THAT BACKSLASH NEEDS TO BE ESCAPED ***/;

Recommendations

Last updated