Data types

Snowflake supports most basic SQL data types (with some restrictions) for use in columns, local variables, expressions, parameters, and any other appropriate/suitable locations.

Binary Data Type

Vertica
Snowflake

BINARY

Notes: Vertica's LONG VARBINARY supports up to 32,000,000 bytes (~30.5MB), while Snowflake's BINARY is limited to (8,388,608 bytes) 8MB. This size difference means you might need an alternative solution for mapping larger LONG VARBINARY data.

Boolean Data Type

Vertica
Snowflake

Character Data Type

Vertica
Snowflake

VARCHAR

Notes: Vertica's LONG VARCHAR supports up to 32,000,000 bytes (~30.5MB), while Snowflake's VARCHAR is limited to 16,777,216 bytes (16MB). This size difference means you might need an alternative solution for mapping larger LONG VARCHAR data.

Date/Time Data Type

Vertica
Snowflake

Approximate Numeric Data Type

Exact Numeric Data Type

Spatial Data Type

UUID Data Type

Vertica
Snowflake

VARCHAR(36)

Notes: Snowflake doesn't have a native UUID data type. Instead, UUIDs are usually stored as either VARCHAR(36) (for string format) or BINARY(16) (for raw byte format).

You can generate RFC 4122-compliant UUIDs in Snowflake using the built-in UUID_STRING() function.

Last updated