SSC-FDM-RS0006
Strings may cause different behavior in Snowflake.
Description
a. In Redshift, NULL
is only returned when all the elements are NULL
. In contrast, in Snowflake, if any element is NULL
, the functions will return NULL
.
b. There are two key differences when using GREATEST
and LEAST
for strings:
Trailing spaces: Snowflake considers trailing spaces, whereas Redshift does not.
Collation settings: Different collation settings may yield different results for the same string with varying cases.
Code Example
Input Code:
IN -> Redshift_01.sql
Output Code:
OUT -> Redshift_01.sql
Recommendations
If you need more support, you can email us at snowconvert-support@snowflake.com
Last updated