VARCHAR is the Snowflake data type designed for variable-length text up to 16 MB. CHAR is fixed length, TEXT is not a Snowflake type, and STRING is an alias but VARCHAR is preferred.
SELECT 123.45 + 67;
SELECT 123.45 + 67;
Adding a decimal number and an integer results in a FLOAT type in Snowflake, which can represent fractional numbers.
VARIANT is the Snowflake data type designed to store semi-structured data like JSON efficiently. OBJECT and ARRAY are subtypes but VARIANT is the container type. VARCHAR stores JSON as plain text without parsing.
Snowflake encrypts all data at rest by default, including BINARY data. BINARY stores raw byte data. Other types are also encrypted but BINARY is the type for raw bytes.
CREATE TABLE test_num (id NUMBER(5,0)); INSERT INTO test_num VALUES ('abc');
Snowflake attempts to convert the string to a number but fails, causing an error and rejecting the insert.