CREATE TABLE statement.
Properties
- Snowflake
- Databricks
- Amazon Redshift
A human-readable name for the component.
Select one of:
- Create: This is the default option. This option creates a new table. Creating a new table will generate an error if a table with the same name already exists. However, existing data will not be destroyed.
- Create if not exists: This option will only create a new table when a table of the same name does not already exist. This option will not destroy existing data. If the schema of the existing table does not match the schema defined in this component, no attempt is made to fix or correct the schema, which could lead to errors later on in the pipeline if:
- Users did not expect a table to already exist.
- Users did not expect to have a different schema to the one defined in this component.
- Replace: If a table with the name you specify in the
New Table Nameproperty already exists, the existing table is replaced by a new table when the pipeline finishes. Selecting this option guarantees that after the component succeeds, the table matches the schema defined in this component. However, any data from the existing table (to be replaced) will be lost.
The Snowflake database that the newly created table will belong to. The special value
[Environment Default] uses the schema defined in the environment. Read Database, Schema, and Share DDL to learn more.The Snowflake schema that the newly created table will belong to. The special value
[Environment Default] uses the schema defined in the environment. Read Database, Schema, and Share DDL to learn more.The name of the table to create or replace. This field is case-sensitive by default, since uses quoted identifiers.
Select the type of Snowflake table to create:
- Permanent holds data indefinitely. This table type can be restored using Snowflake’s Time Travel.
- Transient holds data indefinitely. This table type can’t be restored.
Enter the following details for each table column.Column Name: The name of the new column.Data Type: Select one of:
- Boolean: This type is suitable for data that is either “true” or “false”. More….
- Date: This type is suitable for dates without times. More….
- Float: This type is for values that are approximate numeric values with fractional components. More….
- Number: This type is suitable for numeric types, with or without decimals. More….
- Time: This type is suitable for time, independent of a specific date and timezone. More….
- Timestamp: This type is a timestamp left unformatted (exists as Unix/Epoch Time). More….
- Varchar: This type is suitable for numbers and letters. A varchar or Variable Character Field is a set of character data of indeterminate length. More….
- Variant: Variant is a tagged universal type that can hold up to 16 MB of any data type supported by Snowflake. More….
Set the default DDL collation. Setting this parameter forces all subsequently created columns in the affected table to have the specified collation as the default, unless the collation for the column is explicitly defined in the DDL. For more information, refer to the Snowflake documentation.
Declare one column to be a primary key. Primary keys are, by default, unique. Users can only have one primary key per table.
Specify clustering key(s) to use. Defining clustering keys can allow for more efficient sorting and scanning of large tables. For more information, refer to the Snowflake documentation.
Set a number of days for which data is retained after deletion. For more information, refer to the Snowflake documentation.
Attach a comment to the table. For more information, refer to the Snowflake documentation.

