ENCODE

Description

The keyword that specifies that the column is the sort key for the table. In Snowflake, SORTKEY from Redshift can be migrated to CLUSTER BY because both optimize data storage for query performance. CLUSTER BY in Snowflake organizes data on specified columns, similar to how SORTKEY orders data in Redshift.

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

Grammar Syntax

ENCODE AUTO

Sample Source Patterns

Input Code:

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

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