Numeric Format Models
Description
These are the different Numeric Formats supported by Redshift and its equivalent in Snowflake.
0
0
9
9
. (period), D
. (period), D
, (comma)
, (comma)
CC
Currently there is no equivalent for Century Code in Snowflake.
FM
FM
PR
Currently there is no equivalent for this format in Snowflake.
S
S
Explicit numeric sign.
L
$
Currency symbol placeholder.
G
G
MI
MI
Minus sign (for negative numbers)
PL
S
Currently there is no equivalent for plus sign in Snowflake. So it is translated to the explicit numeric sign.
SG
S
Explicit numeric Sign in the specified position.
RN
Currently there is no equivalent for Roman Numerals in Snowflake.
TH
Currently there is no equivalent for Ordinal suffix in Snowflake
Sample Source Patterns
Uses in To_Number function
Input:
Output
Input:
Output:
Uses in To_Char function
Input:
Output:
Unsupported format
The following format is not supported, for which it will be marked with an EWI.
Input:
Output:
Know Issues
1. Using numeric signs inside the number not supported.
When any numeric sign format (MI, SG or PL) is used inside the number, instead of at the start, or at the end of the number is not supported in snowflake
Example
Related EWIs
SSC-EWI-PG0005: The current date/numeric format may have a different behavior in Snowflake.
Last updated