Column Definition
The table's schema information
Grammar syntax
column :=
col_name data_type [column_constraint_specification]
[COMMENT col_comment], ...
column_constraint_specification:
: [ PRIMARY KEY|UNIQUE|NOT NULL|DEFAULT [default_value]|CHECK [check_expression] ENABLE|DISABLE NOVALIDATE RELY/NORELY ]
default_value:
: [ LITERAL|CURRENT_USER()|CURRENT_DATE()|CURRENT_TIMESTAMP()|NULL ]
Data types
Click here for more information about the translation spec for data types. Also, see more information about data types in Hive here.
Sample Source
1. COMMENT
The comment clause is fully supported by Snowflake.
2. Primary Key
Primary Key is fully supported by Snowflake.
3. Unique
Unique constraint is fully supported by Snowflake.
4. Default default_expression
The default value assigned to the column
The default constraint is fully supported by Snowflake.
5. Not null
Not null constraint is fully supported by Snowflake.
6. Check
Check constraint is not supported by Snowflake.
Known Issues
No issues were found.
Related EWIs
MSC-HVXXXX : THE CREATE TABLE CHECK CONSTRAINT IS NOT SUPPORTED IN SNOWFLAKE.
Last updated
Was this helpful?