Skip to content

Assert Table

Overview

The Assert Table component empowers Matillion ETL users to confirm that a target table has been created with the correct metadata. This component asserts a row count using various methods such as "Equal to", "Greater than", "Less than", and "Range"; these comparator options allow users to set the upper and lower values of row counts.

This component forms part of Matillion ETL's assert components suite. This suite of components is an Enterprise Mode feature.

Learn about Matillion ETL's other assert components in the Assert components overview.


Properties

Name = string

A human-readable name for the component.


Database = drop-down

The Snowflake database. The special value, [Environment Default], will use the database defined in the environment. Read Databases, Tables and Views - Overview to learn more.


Schema = drop-down

The Snowflake schema. The special value, [Environment Default], will use the schema defined in the environment. Read Database, Schema, and Share DDL to learn more.


Table Name = drop-down

The table to assert.


Exists = drop-down

This property asserts that the table exists within the database.


Table Metadata = column editor

  • Column Name: The name of the column.
  • Data Type: Select the data type.
    • Varchar: This type is suitable for numbers and letters. A varchar or Variable Character Field is a set of character data of indeterminate length.
    • Number: This type is suitable for numeric types, without or with decimals.
    • Float: This type of values are approximate numeric values with fractional components.
    • Boolean: This type is suitable for data that is either "true" or "false".
    • Date: This type is suitable for dates without times.
    • Time: This type is suitable for time, independent of a specific date and timezone.
    • Timestamp: This type is a timestamp left unformatted (exists as Unix/Epoch Time).
    • Variant: Variant is a tagged universal type that can hold up to 16 MB of any data type supported by Snowflake.
  • Size: For Text types, this is the maximum length. This is a limit on the number of bytes, not characters. For Numeric types, this is the total number of digits allowed, whether before or after the decimal point.
  • Precision: The precision of the data in the column. Will be 0 (zero) for non-applicable types.

Row Count Comparison Type = drop-down

Select how row count values are compared. Possible comparison operators are: "Equal to", "Greater than or equal to", "Less than or equal to", and "Range".

  • Equal to: The value in the Input Column must be equal to that specified in the Value Column. This is the default comparison operator.
  • Greater than or equal to: The value in the Input Column must be greater than or equal to the value in the Value Column.
  • Less than or equal to: The value in the Input Column must be less than or equal to the value in the Value Column.
  • Range: This allows users to specify the range for the value of the row counts.

Selecting "Range" makes the Upper Value and Lower Value properties available.

Not all data sources support all comparison operators; thus, it is likely that only a subset of the above comparison operators will be available to choose from.


Lower Value = integer

Set the lower value. This property is only available when Row Count Comparison Type is set to Range.


Upper Value = integer

Set the upper value. This property is only available when Row Count Comparison Type is set to Range.


Row Count Value = integer

Specify the number of rows.

Name = string

A human-readable name for the component.


Catalog = drop-down

Select a Databricks Unity Catalog. The special value, [Environment Default], will use the catalog specified in the Matillion ETL environment setup. Selecting a catalog will determine which databases are available in the next parameter.


Database = drop-down

Select the Delta Lake database. The special value, [Environment Default], will use the database specified in the Matillion ETL environment setup.


Table Name = drop-down

The table to assert.


Exists = drop-down

This property asserts that the table exists within the database.


Table Metadata = column editor

  • Column Name: The name of the column.
  • Data Type: Select from INTEGER, NUMBER, FLOAT, TEXT, TIMESTAMP, DATE, BOOLEAN, BINARY as the data type for this column. For more information, read Data Types.
  • Size: Set the data type size.
  • Scale: Set the data type scale.

Row Count Comparison Type = drop-down

Select how row count values are compared. Possible comparison operators are: "Equal to", "Greater than or equal to", "Less than or equal to", and "Range".

  • Equal to: The value in the Input Column must be equal to that specified in the Value Column. This is the default comparison operator.
  • Greater than or equal to: The value in the Input Column must be greater than or equal to the value in the Value Column.
  • Less than or equal to: The value in the Input Column must be less than or equal to the value in the Value Column.
  • Range: This allows users to specify the range for the value of the row counts.

Selecting "Range" makes the Upper Value and Lower Value properties available.

Not all data sources support all comparison operators; thus, it is likely that only a subset of the above comparison operators will be available to choose from.


Lower Value = integer

Set the lower value. This property is only available when Row Count Comparison Type is set to Range.


Upper Value = integer

Set the upper value. This property is only available when Row Count Comparison Type is set to Range.


Row Count Value = integer

Specify the number of rows.

Name = string

A human-readable name for the component.


Schema = drop-down

Select the table schema. The special value, [Environment Default], will use the schema defined in the environment. For more information on using multiple schemas, read Schemas.


Table Name = drop-down

The table to assert.


Exists = drop-down

This property asserts that the table exists within the database.


Table Metadata = column editor

  • Column Name: The name of the column.
  • Data Type: Select the data type.
    • Text: A string can hold any kind of data, subject to a maximum size.
    • Integer: An integer data type is suitable for whole numbers (no decimals).
    • Numeric: The numeric data type accepts numbers, with or without decimals.
    • Real: This type is suitable for data of a single precision floating-point number.
    • Double Precision: This type is suitable for data of a double precision floating-point number.
    • Boolean: Data with a Boolean data type can be either "true" or "false".
    • Date: This type is suitable for dates without times.
    • DateTime: This type is suitable for dates, times, or timestamps (both date and time).
    • SUPER: Use the SUPER data type to store semi-structured data or documents as values.
  • Size: For text types, this is the maximum length. This is a limit on the number of bytes, not characters. For Redshift, since all data is stored using UTF-8, any non-ASCII character will count as 2 or more bytes. For Numeric types, this is the total number of digits allowed, whether before or after the decimal point.
  • Decimal Places: Relevant only for "Numeric" data, it is the maximum number of digits that may appear to the right of the decimal point.

Row Count Comparison Type = drop-down

Select how row count values are compared. Possible comparison operators are: "Equal to", "Greater than or equal to", "Less than or equal to", and "Range".

  • Equal to: The value in the Input Column must be equal to that specified in the Value Column. This is the default comparison operator.
  • Greater than or equal to: The value in the Input Column must be greater than or equal to the value in the Value Column.
  • Less than or equal to: The value in the Input Column must be less than or equal to the value in the Value Column.
  • Range: This allows users to specify the range for the value of the row counts.

Selecting "Range" makes the Upper Value and Lower Value properties available.

Not all data sources support all comparison operators; thus, it is likely that only a subset of the above comparison operators will be available to choose from.


Lower Value = integer

Set the lower value. This property is only available when Row Count Comparison Type is set to Range.


Upper Value = integer

Set the upper value. This property is only available when Row Count Comparison Type is set to Range.


Row Count Value = integer

Specify the number of rows.

Name = string

A human-readable name for the component.


Project = drop-down

Select the Google Cloud project. The special value, [Environment Default], will use the project defined in the environment. For more information, read Creating and managing projects.


Dataset = drop-down

Select the Google BigQuery dataset to load data into. The special value, [Environment Default], will use the dataset defined in the environment. For more information, read Introduction to datasets.


Table Name = drop-down

The table to assert.


Exists = drop-down

This property asserts that the table exists within the database.


Table Metadata = column editor

  • Field Name: The name of the field.
  • Data Type: Select the data type.
    • String: A string can hold any kind of data, subject to a maximum size.
    • Integer: An integer data type is suitable for whole numbers (no decimals).
    • Float: Floating point values are approximate numeric values with fractional components.
    • Numeric: The numeric data type accepts numbers, with or without decimals.
    • Boolean: Data with a Boolean data type can be either "true" or "false".
    • Date: This data type is suitable for dates without times.
    • Time: This data type is suitable for time, independent of a specific date or timezone.
    • DateTime: This type is suitable for dates, times, or timestamps (both date and time).
    • Timestamp: This type is a timestamp left unformatted (exists as Unix/Epoch Time).
    • Struct: This data type is suitable for a struct.
  • Mode: BigQuery supports the following modes for your fields. Using a mode is optional. If the mode is unspecified, the column defaults to NULLABLE.
    • NULLABLE: Column allows NULL values (default).
    • REQUIRED: NULL values are not allowed.
    • REPEATED: Column contains an array of values of the specified type.

Row Count Comparison Type = drop-down

Select how row count values are compared. Possible comparison operators are: "Equal to", "Greater than or equal to", "Less than or equal to", and "Range".

  • Equal to: The value in the Input Column must be equal to that specified in the Value Column. This is the default comparison operator.
  • Greater than or equal to: The value in the Input Column must be greater than or equal to the value in the Value Column.
  • Less than or equal to: The value in the Input Column must be less than or equal to the value in the Value Column.
  • Range: This allows users to specify the range for the value of the row counts.

Selecting "Range" makes the Upper Value and Lower Value properties available.

Not all data sources support all comparison operators; thus, it is likely that only a subset of the above comparison operators will be available to choose from.


Lower Value = integer

Set the lower value. This property is only available when Row Count Comparison Type is set to Range.


Upper Value = integer

Set the upper value. This property is only available when Row Count Comparison Type is set to Range.


Row Count Value = integer

Specify the number of rows.

Name = string

A human-readable name for the component.


Schema = drop-down

Select the table schema. The special value, [Environment Default], will use the schema defined in the environment. For more information on schemas, read the Azure Synapse documentation.


Table Name = drop-down

The table to assert.


Exists = drop-down

This property asserts that the table exists within the database.


Table Metadata = column editor

  • Column Name: The name of the column.
  • Data Type: Select the data type.
    • DATE: This data type is suitable for dates without times.
    • DATETIME: This data type is suitable for timestamps.
    • TIME: This data type is suitable for times.
    • INTEGER: This data type is suitable for whole number types (no decimals).
    • NUMERIC: This data type is suitable for numeric types, with or without decimals.
    • TEXT: This data type is suitable for text types.
    • FLOAT: This data type is suitable for approximate number data types for use with floating point numeric data.
    • BOOLEAN: This data type is suitable for data where values are either "true" or "false".
  • Size: Set the data type size. For T-SQL, this is denoted as Precision.
  • Precision: Set the data type scale. For T-SQL, this is denoted as Scale.

Row Count Comparison Type = drop-down

Select how row count values are compared. Possible comparison operators are: "Equal to", "Greater than or equal to", "Less than or equal to", and "Range".

  • Equal to: The value in the Input Column must be equal to that specified in the Value Column. This is the default comparison operator.
  • Greater than or equal to: The value in the Input Column must be greater than or equal to the value in the Value Column.
  • Less than or equal to: The value in the Input Column must be less than or equal to the value in the Value Column.
  • Range: This allows users to specify the range for the value of the row counts.

Selecting "Range" makes the Upper Value and Lower Value properties available.

Not all data sources support all comparison operators; thus, it is likely that only a subset of the above comparison operators will be available to choose from.


Lower Value = integer

Set the lower value. This property is only available when Row Count Comparison Type is set to Range.


Upper Value = integer

Set the upper value. This property is only available when Row Count Comparison Type is set to Range.


Row Count Value = integer

Specify the number of rows.


Snowflake Delta Lake on Databricks Amazon Redshift Google BigQuery Azure Synapse Analytics