Aliased Table
Component that makes data in a pre-existing table available in the Ascend Flow.
Examples
- aliased_table_reference.yaml
# This YAML configuration is for referencing another table in Ascend
component:
alias:
# Specify the location of the existing table to alias
location: "my_database.my_schema.my_table"
AliasedTableComponent
AliasedTableComponent is defined beneath the following ancestor nodes in the YAML structure:
Below are the properties for the AliasedTableComponent. Each property links to the specific details section further down in this page.
| Property | Default | Type | Required | Description |
|---|---|---|---|---|
| skip | boolean | No | Boolean flag indicating whether to skip processing for the Component or not. | |
| retry_strategy | No | Retry strategy configuration options for the Component if any exceptions are encountered. | ||
| description | string | No | Brief description of what the model does. | |
| metadata | No | Meta information of a resource. In most cases it doesn't affect the system behavior but may be helpful to analyze project resources. | ||
| name | string | Yes | The name of the model | |
| flow_name | string | No | Name of the Flow that the Component belongs to. | |
| data_maintenance | No | The data maintenance configuration options for the Component. | ||
| tests | No | Defines tests to run on this Component's data. | ||
| alias | Yes | Configuration options for the aliased table Component. |
Property Details
Component
A Component is a fundamental building block of a data Flow. Supported Component types include: Read, Transform, Task, Test, and more.
| Property | Default | Type | Required | Description |
|---|---|---|---|---|
| component | One of: CustomPythonReadComponent ApplicationComponent AliasedTableComponent ExternalTableComponent | Yes | Component configuration options. |
AliasedTableOptions
Configuration options for the AliasedTable Component.
| Property | Default | Type | Required | Description |
|---|---|---|---|---|
| dependencies | array[None] | No | List of dependencies that must complete before this Component runs. | |
| event_time | string | No | Timestamp column in the Component output used to represent Event time. | |
| location | string | No | Location of the table to alias. |
ComponentTestOptions
Options for component tests, including data quality tests and schema checks.
ColumnTestPython
Test to validate data using a Python function for a single column.
| Property | Default | Type | Required | Description |
|---|---|---|---|---|
| severity | error | string ("error", "warn") | No | The severity level for issues raised by the test. Default is 'error'. Use 'error' for critical issues that should interrupt flow processing. Use 'warn' for warnings/minor issues that should not interrupt flow processing. |
| name | string | Yes | ||
| python | Yes | Configuration options for the Python column test. |
ColumnTestPythonOptions
| Property | Default | Type | Required | Description |
|---|---|---|---|---|
| entrypoint | string | Yes | Entry point for the Python Transform function. | |
| source | string | Yes | Source file for the Python Transform function. | |
| params | object with property values of type None | No | Parameters for the Python test function. | |
| is_asset_test | boolean | No |
ColumnTestSql
Test to validate data using an SQL query for a single column.
| Property | Default | Type | Required | Description |
|---|---|---|---|---|
| severity | error | string ("error", "warn") | No | The severity level for issues raised by the test. Default is 'error'. Use 'error' for critical issues that should interrupt flow processing. Use 'warn' for warnings/minor issues that should not interrupt flow processing. |
| name | string | Yes | ||
| sql | string | No | SQL query that tests data for conditions. |
CombinationUniqueTest
Test to check if a value is unique.
| Property | Default | Type | Required | Description |
|---|---|---|---|---|
| severity | error | string ("error", "warn") | No | The severity level for issues raised by the test. Default is 'error'. Use 'error' for critical issues that should interrupt flow processing. Use 'warn' for warnings/minor issues that should not interrupt flow processing. |
| combination_unique | Yes | Test to check if a value is unique. |
CombinationUniqueTestOptions
Configuration options for the unique test.
| Property | Default | Type | Required | Description |
|---|---|---|---|---|
| columns | array[string] | Yes | Combination of columns to check for uniqueness. |
ComponentSchemaTest
Test to validate that component columns match expected types.
| Property | Default | Type | Required | Description |
|---|---|---|---|---|
| severity | error | string ("error", "warn") | No | The severity level for issues raised by the test. Default is 'error'. Use 'error' for critical issues that should interrupt flow processing. Use 'warn' for warnings/minor issues that should not interrupt flow processing. |
| match | exact | string ("exact", "ignore_missing") | No | The type of schema matching to perform. 'exact' requires all columns to be present, 'ignore_missing' allows for missing columns. |
| columns | object with property values of type string | No | Mapping of column names to their expected types. |
CountDistinctEqualTest
Test to check if the number of distinct values is equal to a certain number.
| Property | Default | Type | Required | Description |
|---|---|---|---|---|
| severity | error | string ("error", "warn") | No | The severity level for issues raised by the test. Default is 'error'. Use 'error' for critical issues that should interrupt flow processing. Use 'warn' for warnings/minor issues that should not interrupt flow processing. |
| count_distinct_equal | Yes |
CountDistinctEqualTestOptions
Configuration options for the count_distinct_equal test.
| Property | Default | Type | Required | Description |
|---|---|---|---|---|
| count | integer | Yes | Number of distinct values to expect. | |
| group_by_columns | array[string] | No | Columns to group by. |
CountEqualTest
Test to check if the number of rows is equal to a certain number.
| Property | Default | Type | Required | Description |
|---|---|---|---|---|
| severity | error | string ("error", "warn") | No | The severity level for issues raised by the test. Default is 'error'. Use 'error' for critical issues that should interrupt flow processing. Use 'warn' for warnings/minor issues that should not interrupt flow processing. |
| count_equal | Yes | Configuration options for the the count_equal test. |
CountEqualTestOptions
Configuration options for the count_equal test.
| Property | Default | Type | Required | Description |
|---|---|---|---|---|
| count | integer | Yes | Number of rows to expect. |
CountGreaterThanOrEqualTest
Test to check if the number of rows is greater than or equal to a certain number.
| Property | Default | Type | Required | Description |
|---|---|---|---|---|
| severity | error | string ("error", "warn") | No | The severity level for issues raised by the test. Default is 'error'. Use 'error' for critical issues that should interrupt flow processing. Use 'warn' for warnings/minor issues that should not interrupt flow processing. |
| count_greater_than_or_equal | Yes |
CountGreaterThanOrEqualTestOptions
Configuration options for the count_greater_than_or_equal test.
| Property | Default | Type | Required | Description |
|---|---|---|---|---|
| count | integer | Yes | Value to compare against. | |
| group_by_columns | array[string] | No | Columns to group by. |
CountGreaterThanTest
Test to check if the number of rows is greater than a certain number.
| Property | Default | Type | Required | Description |
|---|---|---|---|---|
| severity | error | string ("error", "warn") | No | The severity level for issues raised by the test. Default is 'error'. Use 'error' for critical issues that should interrupt flow processing. Use 'warn' for warnings/minor issues that should not interrupt flow processing. |
| count_greater_than | Yes |
CountGreaterThanTestOptions
Configuration options for the count_greater_than test.
| Property | Default | Type | Required | Description |
|---|---|---|---|---|
| count | integer | Yes | Value to compare against. | |
| group_by_columns | array[string] | No | Columns to group by. |
CountLessThanOrEqualTest
Test to check if the number of rows is greater than or equal to a certain number.
| Property | Default | Type | Required | Description |
|---|---|---|---|---|
| severity | error | string ("error", "warn") | No | The severity level for issues raised by the test. Default is 'error'. Use 'error' for critical issues that should interrupt flow processing. Use 'warn' for warnings/minor issues that should not interrupt flow processing. |
| count_less_than_or_equal | Yes |
CountLessThanOrEqualTestOptions
Configuration options for the count_less_than_or_equal test.
| Property | Default | Type | Required | Description |
|---|---|---|---|---|
| count | integer | Yes | Value to compare against. | |
| group_by_columns | array[string] | No | Columns to group by. |
CountLessThanTest
Test to check if the number of rows is less than a certain number.
| Property | Default | Type | Required | Description |
|---|---|---|---|---|
| severity | error | string ("error", "warn") | No | The severity level for issues raised by the test. Default is 'error'. Use 'error' for critical issues that should interrupt flow processing. Use 'warn' for warnings/minor issues that should not interrupt flow processing. |
| count_less_than | Yes |
CountLessThanTestOptions
Configuration options for the count_less_than test.
| Property | Default | Type | Required | Description |
|---|---|---|---|---|
| count | integer | Yes | Value to compare against. | |
| group_by_columns | array[string] | No | Columns to group by. |
DataMaintenance
Data maintenance configuration options for Components.
| Property | Default | Type | Required | Description |
|---|---|---|---|---|
| enabled | boolean | No | Boolean flag indicating whether data maintenance is enabled for the Component. |
DateInRangeTest
Test to check if a date is within a certain range.
| Property | Default | Type | Required | Description |
|---|---|---|---|---|
| severity | error | string ("error", "warn") | No | The severity level for issues raised by the test. Default is 'error'. Use 'error' for critical issues that should interrupt flow processing. Use 'warn' for warnings/minor issues that should not interrupt flow processing. |
| date_in_range | Yes |
DateInRangeTestOptions
Configuration options for the date_in_range test.
| Property | Default | Type | Required | Description |
|---|---|---|---|---|
| min | string | Yes | Minimum value to expect. | |
| max | string | Yes | Maximum value to expect. |
GreaterThanOrEqualTest
Test to check if a value is greater than or equal to a certain number.
| Property | Default | Type | Required | Description |
|---|---|---|---|---|
| severity | error | string ("error", "warn") | No | The severity level for issues raised by the test. Default is 'error'. Use 'error' for critical issues that should interrupt flow processing. Use 'warn' for warnings/minor issues that should not interrupt flow processing. |
| greater_than_or_equal | Yes |
GreaterThanOrEqualTestOptions
Configuration options for the greater_than_or_equal test.
| Property | Default | Type | Required | Description |
|---|---|---|---|---|
| value | Any of: integer number string | Yes | Value to compare against. |
GreaterThanTest
Test to check if a value is greater than a certain number.
| Property | Default | Type | Required | Description |
|---|---|---|---|---|
| severity | error | string ("error", "warn") | No | The severity level for issues raised by the test. Default is 'error'. Use 'error' for critical issues that should interrupt flow processing. Use 'warn' for warnings/minor issues that should not interrupt flow processing. |
| greater_than | Yes |
GreaterThanTestOptions
Configuration options for the greater_than test.
| Property | Default | Type | Required | Description |
|---|---|---|---|---|
| value | Any of: |