SUBSTRING
Description
Returns the subset of a string based on the specified start position. (RedShift SUBSTRING function).
Grammar Syntax
This function is partially supported in Snowflake.
Sample Source Patterns
Input Code:
IN -> Redshift_01.sql
Output Code:
OUT -> Redshift_01.sql
Know Issues
When the start_position
in Redshift is 0 or less, the SUBSTRING
function performs a mathematical operation (start_position + number_characters
). If the result is 0 or less, SUBSTRING
returns an empty string. In Snowflake, the behavior for start_position
when it is 0 or less differs, leading to different results.
Related EWIs
SSC-EWI-RS0006: The behavior of the SUBSTRING function may differ when applied to binary data.
Last updated