Greenplum
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
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:
Output Code:
DISTRIBUTED BY
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:
Output Code:
DISTRIBUTED RANDOMLY - REPLICATED
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.
Grammar Syntax
Sample Source Patterns
Input Code:
Output Code:
Related EWIs
SSC-FDM-GP0001: The performance of the CLUSTER BY may vary compared to the performance of Distributed By.
Last updated