Cloud platform information
If you’re a Snowflake, Amazon Redshift, or Google BigQuery user, familiarize yourself with the corresponding information about this component.Snowflake
When using Snowflake, external tables are useful for querying large datasets without physically loading them into Snowflake storage. The data is typically returned in a single column named VALUE, containing variant-type values. Each row stores the source data as a set of properties within this variant.- Due to the structure of the returned data, transformation (e.g using the Flatten Variant component) is often required to convert it into a usable format.
- External tables must be refreshed after any changes to the underlying data. Use the Refresh External Table component to update the metadata before querying.
Amazon Redshift
When using Amazon Redshift, the Create External Table component references data stored in an Amazon S3 bucket. Like Snowflake, the external table doesn’t store the data internally. If the component requires access to a cloud provider (AWS, Azure, or Google Cloud), it will use credentials as follows:- If using Matillion Full SaaS: The component will use the cloud credentials associated with your environment to access resources.
- If using Hybrid SaaS: By default the component will inherit the agent’s execution role (service account role). However, if there are cloud credentials associated with your environment, these will overwrite the role.
- External tables are part of Amazon Redshift Spectrum, and may not be available in all regions. For a list of supported regions, read Amazon Redshift endpoints and quotas.
- For more information about working with external tables, read Creating external tables for Redshift Spectrum.
Google BigQuery
When using Google BigQuery, the Create External Table component creates a table that references data stored in a Google Cloud Storage (GCS) bucket. The external table doesn’t store data internally but can be queried like a regular Google BigQuery table. For more information, read the Google BigQuery tables REST resource.Properties
- Snowflake
- Amazon Redshift
- Google BigQuery
string
required
A human-readable name for the component.
drop-down
required
Select one of:
- Create: (default). This option creates a new external table. The component will fail if an external table with the same name already exists.
- Create if not exists: This option will only create a new external table when an external table of the same name does not already exist. If the schema of the existing external 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 an external table to already exist.
- Users did not expect to have a different schema to the one defined in this component.
- Replace: This option drops any existing external table of the same name and then creates a new one. Selecting this option guarantees that after the component succeeds, the external table matches the schema defined in this component.
drop-down
required
import SnowflakeDatabase from ‘/snippets/content/snowflake-database.mdx’;
drop-down
required
import SnowflakeSchema from ‘/snippets/content/snowflake-schema.mdx’;
string
required
The name of the external table to be created or used.
column editor
A partition is defined by an expression applied to a set of data, resulting in a partition that only contains rows that satisfy the expression. For example, partitioning a dataset by the value in the ‘year’ column.For more information about setting up partitions with Snowflake’s external tables, read Managing Regular Data Loads.
- Name: The name of the new partition column.
- Type: The data type of the partition column.
- Size: The data size of the new column values.
- Precision: The precision of the new column values.
- Partition Expression: The expression used to partition the data.
drop-down
required
Select a Snowflake database for the external stage.
drop-down
required
Select a Snowflake schema for the external stage.
drop-down
required
Select an external stage for the data. Staging areas can be created through Snowflake using the CREATE STAGE command.
string
The directory path to follow to the target data. File names cannot be specified. The path is relative to the storage location given in the external stage setup.
string
Specify, using regular expression (RegEx) pattern syntax, files to be matched on the external stage.For example:
'.*flight.*[.]csv'drop-down
required
Select a pre-made file format that will automatically set many of the component properties accordingly. These formats can be created through the Create File Format component.The list of file formats will come from the database and schema that the specified tables exist in.
drop-down
required
The type of expected data to load. Some data may require additional formatting, explained in Preparing to Load Data.Available options are: AVRO, CSV, JSON, ORC, PARQUET, and XML.Component properties will change to reflect the choice made here and give options based on the specific file type.
- AVRO
- CSV
- JSON
- ORC
- PARQUET
- XML
drop-down
required
Select whether the input file is compressed in GZIP format, BROTLI, BZ2, DEFLATE, RAW_DEFLATE, ZSTD, or not compressed at all. The default is AUTO.When AUTO is selected, the compression algorithm is detected automatically, except for Brotli-compressed files, which cannot currently be detected automatically.
string
This option replaces the specified string with NULL in the output table. Use this if your data has a particular representation of missing data.
boolean
required
When true, removes trailing and leading whitespace from the input data. Default is false.
