MSC-BQ0001

The Create Table OPTIONS clause is not supported in Snowflake.

triangle-exclamation

Severity

Medium (waiting for CoE revision)

Description

This warning is added to the Create Table statement when the OPTIONS clause is included there.

Code Example

Input Code:

CREATE TABLE mydataset.newtable
LIKE sourceTable
OPTIONS(expiration_timestamp=TIMESTAMP ""2025 - 01 - 01 00:00:00 UTC"");

Output Code:

CREATE TABLE mydataset.newtable
LIKE sourceTable
-- ** MSC-ERROR - MSC-BQ0001 - THE CREATE TABLE OPTIONS CLAUSE IS NOT SUPPORTED IN SNOWFLAKE. **
--OPTIONS(expiration_timestamp=TIMESTAMP ""2025 - 01 - 01 00:00:00 UTC"")
                                                                     ;

Recommendations

  • For the descriptionarrow-up-right option in the create table options clause which is a user-friendly description of the table, in Snowflake exists a comment clausearrow-up-right that adds a comment or overwrites an existing comment for an existing object. These may have similar functionalities to be considered.

  • Add manual changes to the not transformed expression.

  • If you need more support, you can email us at [email protected]envelope

Last updated