SnowConvert AI - Netezza - CREATE TABLE¶

Translation from Netezza to Snowflake

Description¶

Creates a new table in Netezza. For more information, please refer to CREATE TABLE documentation.

Warning

This grammar is partially supported in Snowflake. Translation pending for these table options:

[ ORGANIZE ON { (<col>) | NONE } ]
[ ROW SECURITY ]
[ DATA_VERSION_RETENTION_TIME <number-of-days> ]
Copy

Grammar Syntax¶

CREATE [ TEMPORARY | TEMP ] TABLE [IF NOT EXISTS] <table>
( <col> <type> [<col_constraint>][,<col> <type> [<col_constraint>]…]
<table_constraint> [,<table_constraint>… ] )
[ DISTRIBUTE ON { RANDOM | [HASH] (<col>[,<col>…]) } ]
[ ORGANIZE ON { (<col>) | NONE } ]
[ ROW SECURITY ]
[ DATA_VERSION_RETENTION_TIME <number-of-days> ]
Copy

DISTRIBUTE ON RANDOM - DISTRIBUTE ON HASH¶

Note

This syntax is not needed in Snowflake.

These clauses controls how table data is physically distributed across the system’s segments. As Snowflake automatically handles data storage, these options will be removed in the migration.

Grammar Syntax¶

DISTRIBUTE ON { RANDOM | [HASH] (<col>[,<col>…]) }
Copy

Sample Source Patterns¶

Input Code:¶

Greenplum¶
CREATE TABLE table1 (colum1 int, colum2 int, colum3 smallint, colum4 int )
DISTRIBUTE ON RANDOM;
Copy

Output Code:¶

Snowflake¶
CREATE TABLE table1 (colum1 int, colum2 int, colum3 smallint, colum4 int )
COMMENT = '{ "origin": "sf_sc", "name": "snowconvert", "version": {  "major": 0,  "minor": 0,  "patch": "0" }, "attributes": {  "component": "netezza",  "convertedOn": "05/11/2025",  "domain": "test" }}'
;
Copy