MSC-PG0007

Constraint index parameter not supported

Severity

Low

Description

The use of index parameters in constraints is not supported in Snowflake. The index parameters are the following:

  • INCLUDE

  • WITH

  • USING INDEX TABLESPACE

Code Example

Input Code:

CREATE TABLE Table1 (
    code        char(5),
    date_prod   date,
    CONSTRAINT production UNIQUE(date_prod) INCLUDE(code)
);

CREATE TABLE Table2 (
    name    varchar(40),
    UNIQUE(name) WITH (fillfactor=70)
);

CREATE TABLE Table3 (
    name    varchar(40),
    PRIMARY KEY(name) USING INDEX TABLESPACE tablespace_name
);

Output Code:

Recommendations

Last updated