SnowConvert AI - Vertica - 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 | BINARY |
| VARBINARY (synonyms: BYTEA, RAW, BINARY VARYING) | BINARY (synonyms: VARBINARY, BINARY VARYING) |
| LONG VARBINARY | Notes: Vertica’s |
Boolean Data Type¶
Character Data Type¶
Date/Time Data Type¶
| Vertica | Snowflake |
|---|---|
| DATE | Notes: Be aware of Snowflake’s recommended year range (1582-9999). |
| TIME | TIME |
| TIME WITH TIMEZONE (TIMETZ) | Notes: TIME data type in Snowflake does not persist this timezone attribute. |
| TIMESTAMP | TIMESTAMP |
| DATETIME | DATETIME |
| SMALLDATETIME | TIMESTAMP_NTZ |
| TIMESTAMP WITH TIMEZONE (TIMESTAMPTZ) | TIMESTAMP_TZ |
| TIMESTAMP WITHOUT TIME ZONE | TIMESTAMP_NTZ |
Approximate Numeric Data Type¶
| Vertica | Snowflake |
|---|---|
| DOUBLE PRECISION | DOUBLE PRECISION |
| FLOAT | FLOAT |
| FLOAT8 | FLOAT8 |
| REAL | REAL |
Exact Numeric Data Type¶
Spatial Data Type¶
UUID Data Type¶
| Vertica | Snowflake |
|---|---|
| UUID | 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 |