Defining Snowflake Tables

The following properties are applicable to a Snowflake Table object.

Tab

Property

Description

Additional Information

 

Physical Name Specifies the physical name of the table

 

 

Database

Specifies the database of the table

 

 

Schema

Specifics the schema for the table

 

 

Use Replace Syntax

Specifies whether the REPLACE syntax is used

Selecting this option replaces the syntax with the new DDL that is generated during Forward Engineering.

 

If Not Exists

Specifies that if the table already exists, no exception is thrown, and no action happens

 

 

Table Type

Specifies the table type

External Table: Indicates that the selected table type is external and the table's data is stored in an external data source.

Dynamic Table: Indicates that the selected table type is dynamic.

 

Physical Only

Specifies whether the table appears in a physical model only

 

 

Generate

Specifies whether a DDL statement is generated for the table during forward engineering

 

General

Name Specifies the complete name of the table  
Physical Name Specifies the physical entity name of the table  

Harden Strategy

Specifies the name of the hardening strategy for a table

Inherit: Indicates to adopt the existing naming conventions established by your organization

Override: Indicates that the existing naming conventions are overwritten with the new one

Harden: Indicates that the naming conventions are hardened across the organization

Table Type

Specifies the table type

 

Data Retention Time (In Days) Specifies the number of days for which SELECT, CLONE, and UNDROP can be performed on the historical data in the table  
DEFAULT_DDL_COLLATION Specifies a default collation specification for all the columns in the table  
Copy Grants Specifies whether the access privileges from the original table are retained when a new table is created  
Like Table Specifies the table from which the new table must use column definitions  
Clone Table Specifies whether to create a new table with the same column definitions and containing all the existing data from the source table, without copying the data  
At or Before Specifies whether to use Time Travel to clone the table at or before a specific point  
Time Type Specifies the time type for Time Travel  
Point Specifies the point at or before which the table must be cloned  

Cluster By Expressions

Cluster By Specifies one or more columns or column expressions in the table as the clustering key  

Stage Format Options

Use Existing File Format Specifies whether the existing file format must be used for loading or unloading data into the table  
Stage File Format Type Specifies the type of files to load or unload into the table Depending on the format that you set, other corresponding properties are available.

Stage Copy Options

Action On Error (while Copy) Specifies the action to be performed when an error occurs while loading data from a file  
Copy Size Limit Specifies the maximum size (in bytes) of data to be loaded for a COPY statement  
Purge After Copy Specifies whether data files must be purged automatically after data is successfully loaded  
Returned Failed Only Specifies whether only the files that failed to load are returned in the statement result  
Enforce Length Specifies whether text strings that exceed the target column length must be truncated  
Match By Column Name Specifies whether to load semi-structured data into columns in the target table that match corresponding columns represented in the data  
Truncate Columns Specifies whether text strings that exceed the target column length must be truncated  
Force Load (Reload) All Files Specifies whether all files must be loaded, irrespective of whether they have been loaded previously and have not changed since they were loaded  

External Table Options

(Applicable only
when the Table Type
is set to External Table)

External Stage Type Specifies the external stage name  
External Stage Location Specifies the external stage where the files containing data to be read are staged  
Refresh On Create Specifies whether the external table metadata must be automatically refreshed after the external table is created  
Auto Refresh Specifies whether Snowflake should enable triggering automatic refreshes of the external table metadata when new or updated data files are available in the specified external stage  
Pattern Specifies a regular expression pattern string, enclosed in single quotes, specifying the file names and/or paths on the external stage to match  

Table Format

Specifies the format of the external table

 

Partition By Specifies any partition columns to evaluate for the external table  

Dynamic Table Options

(Applicable only
when the Table Type
is set to Dynamic Table)

Target Lag

Specifies the maximum time the dynamic table's content can be delayed after updates to the source tables.

 

Warehouse

Specifies the name of the warehouse for refreshing the dynamic tables

 

Refresh Mode

Specifies the refresh modes for the dynamic tables

Auto: Indicates that the system applies an incremental refresh rate by default. This is the default mode.

Full: Indicates to enforce a complete refresh of the dynamic tables.

Incremental: Indicate to enforce an incremental refresh of the dynamic tables.

Initialize

Specifies how the initial refresh of the dynamic tables behaves

On Create: Indicates that the dynamic tables are refreshed at its creation.

On Schedule: Indicates that the dynamic tables are refreshed at the next scheduled refresh.

Max Data Extension Time in Days

Specifies the maximum number of days the data can be retained on the dynamic tables

 

Row Access Policy

Specifies the access policy for the row in a dynamic table

 

Query

Specifies the query for the dynamic tables

 

Row Access Policy Columns

Specifies the columns with row access policy

 

Tags List Name Specifies the name of the tag  
Value Specifies the value of the available tag