SnowConvert AI - Greenplum - CREATE TABLE¶
Translation from Greenplum to Snowflake
Description¶
This section explains features exclusive to Greenplum.
For more information, please refer to CREATE TABLE the documentation.
Grammar Syntax¶
ENCODING¶
Note
This syntax is not needed in Snowflake.
The compression encoding for a column. In Snowflake, defining ENCODING is unnecessary because it automatically handles data compression, unlike Greenplum, which could set up the encoding manually. For this reason, the ENCODING statement is removed during migration.
Grammar Syntax¶
Sample Source¶
Input Code:¶
Greenplum¶
Output Code:¶
Snowflake¶
DISTRIBUTED BY¶
Hint
This syntax is fully supported in Snowflake.
The DISTRIBUTED BY clause in Greenplum controls how table data is physically distributed across the system’s segments. Meanwhile, CLUSTER BY is a subset of columns in a table (or expressions on a table) that are explicitly designated to co-locate the data in the table in the same micro-partitions.
Grammar Syntax¶
Sample Source Patterns¶
Input Code:¶
Greenplum¶
Output Code:¶
Snowflake¶
DISTRIBUTED RANDOMLY - REPLICATED¶
Note
This syntax is not needed in Snowflake.
The DISTRIBUTED REPLICATED or DISTRIBUTED RANDOMLY clause in Greenplum 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.