Skip to main content
Skip table of contents

Hybrid table support in Snowflake

Target database: Snowflake

Hybrid table support in Snowflake


See also:


Usage

  • Create entity with physical type TABLE

  • Add physical option STORAGE.COLUMN_STORE with value FALSE

  • Add primary key


Notes

To define a Hybrid Table in Snowflake it requires the entity to be physical type of TABLE and a primary key constraint to be set and also the physical option STORAGE.COLUMN_STORE to be set to false.

When the Hybrid Table is defined these features won’t be applied:

Hint

Snowflake Hybrid Tables support Indexes and this is enabled in Agile Data Engine by defining a key with a type SECONDARY_INDEX.

Examples

Hybrid Table

This example presents how a hybrid table would be created

Feature is enabled by:

Set Physical Option

OPTION
STORAGE.COLUMN_STORE: false

Set Primary key

OPTION
PK_CUSTOMER_ORDER: customer_id

Resulting DML generated by Agile Data Engine:

Snowflake SQL:

CODE
CREATE HYBRID TABLE publish.CUSTOMER_ORDER (
    order_id VARCHAR (40) NULL
    , customer_id VARCHAR (40) NULL
    , product_id VARCHAR (40) NULL
    , payment_amount NUMBER (10,2) NULL
    , CONSTRAINT PK_CUSTOMER_ORDER PRIMARY KEY ( customer_id )
);
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.