Numeric Format Models

circle-info

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 Documentationarrow-up-right

For any immediate assistance or if you encounter any issues, please contact our support team at [email protected]envelope.

Thank you for your understanding.

Description

These are the different Numeric Formats supported by Redshiftarrow-up-right and its equivalent in Snowflakearrow-up-right.

Redshift
Snowflake
Comments

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

Last updated