DISTKEY

Description

In Amazon Redshift, DISTKEY is used to distribute data across cluster nodes to optimize query performance. Snowflake, however, automatically handles data distribution and storage without needing explicit distribution keys. Due to differences in architecture and data management approaches, Snowflake does not have a direct equivalent to Redshift's DISTKEY. For these reasons, the statement DISTKEY is removed during the transformation process

Click here to navigate to the Amazon Redshift docs page for this syntax.

Grammar Syntax

DISTKEY ( column_name )

Sample Source Patterns

RedShift Input Code:

IN -> Redshift_01.sql
CREATE TABLE table1 (
    col1 INTEGER
)
DISTKEY (col1);

Snowflake Output Code:

OUT -> Redshift_01.sql
CREATE TABLE table1 (
    col1 INTEGER
)
COMMENT = '{ "origin": "sf_sc", "name": "snowconvert", "version": {  "major": 0,  "minor": 0,  "patch": "0" }, "attributes": {  "component": "redshift",  "convertedOn": "09/17/2024" }}'
;

There are no known issues.

Last updated