Computed fields are user-defined derived columns that apply transformations to existing fields in a container. They are created through the Qualytics API and are fully supported in the config export/import pipeline.
A computed field defines a transformation on one or more source fields within a container. After creation, the container must be profiled to materialize the field record, after which quality checks can target it.
| Type | Description | Source Fields | Key Properties |
|---|---|---|---|
cast |
Cast to a different data type | 1 field | target_type (Spark SQL type), format (optional date pattern) |
cleanedEntityName |
Strip business suffixes from entity names | 1 string field | drop_from_suffix/prefix/interior, terms_to_drop/ignore |
convertFormattedNumeric |
Strip formatting from numeric strings | 1 string field | (none) |
customExpression |
Arbitrary Spark SQL expression | none (must be null) | column_expression (required) |
Computed fields are automatically included when you export configuration. They live alongside their parent container:
datastores/
order_analytics/
containers/
accounts/
_container.yaml
computed_fields/
cleaned_company_name.yaml
full_name.yaml
# computed_fields/cleaned_company_name.yaml
name: cleaned_company_name
transformation: cleanedEntityName
source_fields:
- company_name
properties:
drop_from_suffix: true
drop_from_prefix: false
drop_from_interior: false
terms_to_drop:
- Inc.
- Corp.
- LLC
terms_to_ignore: []# computed_fields/full_name.yaml
name: full_name
transformation: customExpression
source_fields: null
properties:
column_expression: "CONCAT(first_name, ' ', last_name)"# computed_fields/amount_int.yaml
name: amount_int
transformation: cast
source_fields:
- amount_str
properties:
target_type: integer- Computed fields are imported after containers and before quality checks
- Matched by
namewithin the parent container - Existing field -- updated via PUT
- New field -- created via POST
- The container must exist in the target environment first
- After import, profile the container to materialize the field records
# Export only computed fields
qualytics config export --datastore-id 1 --include computed_fields
# Import only computed fields (containers must already exist)
qualytics config import --input ./qualytics-config --include computed_fieldsThe following internal fields are removed to keep the YAML portable:
id-- auto-generatedcontainer_id-- resolved by container name on importlast_editor_id/last_editor-- operational metadata