DISTSTYLE

Description

Keyword that defines the data distribution style for the whole table.

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

Grammar Syntax

DISTSTYLE { AUTO | EVEN | KEY | ALL }

Sample Source Patterns

Amazon Redshift

CREATE TABLE TABLE1 
(
 COL1 INT DISTKEY,
 COL2 VARCHAR(15)
) 
DISTSTYLE KEY;

CREATE TABLE TABLE2
(
 COL1 INT,
 COL2 VARCHAR(15)
) 
DISTSTYLE ALL;

Snowflake

  1. MCS-RS0013: DistStyle option is replaced by 'CLUSTER BY' on Snowflake using DISTKEY option.

  2. MCS-RS0011: DistStyle option not supported. Data storage is automatically handled by Snowflake.

Last updated

Was this helpful?