Distributed Clause

Description

Used to declare the Greenplum Database distribution policy for the table.

Click here to navigate to the Greenplum documentation page for this syntax.

Grammar Syntax

[ DISTRIBUTED BY (column [opclass], [ ... ] ) 
| DISTRIBUTED RANDOMLY 
| DISTRIBUTED REPLICATED ]

Sample Source Patterns

Greenplum

CREATE TEMPORARY TABLE temp_CINS (
   alt_cd6 varchar(30) NULL,
)
DISTRIBUTED BY (alt_cd6);


CREATE TABLE table1 (
	col1 varchar(30)
)
DISTRIBUTED RANDOMLY;

CREATE TABLE table2 (
	col1 varchar(30)
)
DISTRIBUTED REPLICATED;

Snowflake

  1. MSC-GP0000: Data storage is automatically handled by Snowflake

Last updated

Was this helpful?