ENCODE

Description

Enables Amazon Redshift to automatically adjust the encoding type for all columns in the table to optimize query performance

Click herearrow-up-right to navigate to the Amazon Redshift docs page for this syntax.

circle-exclamation

Grammar Syntax

ENCODE AUTO

Sample Source Patterns

Amazon Redshift

CREATE TABLE TABLE1 (
COL1 INTEGER,
COL2 VARCHAR(30)) 
ENCODE AUTO;

Snowflake

CREATE TABLE TABLE1 (
COL1 INTEGER,
COL2 VARCHAR(30))
----** MSC-WARNING - MSC-RS0005 - ENCODING OPTION NOT SUPPORTED. DATA STORAGE IS AUTOMATICALLY HANDLED BY SNOWFLAKE. **
--ENCODE AUTO
           ;
  1. MCS-RS000arrow-up-right5arrow-up-right: ENCODING option not supported. Data storage is automatically handled by Snowflake.

Last updated

Was this helpful?