Mar
01/14/2025, 1:32 AMNoya Offer
01/14/2025, 9:12 AMschema.yml file. This description will appear in the report under each test result, and in the alerts.
See an example with an Elementary anomaly test:
models:
- name: stg_queries
config:
elementary:
timestamp_column: 'query_execution_datetime'
columns:
- name: cost_of_query_usd
tests:
- elementary.column_anomalies:
column_anomalies:
- standard_deviation
training_period:
period: week
count: 20
detection_period:
period: week
count: 1
meta:
owner: "@noya.offer"
description: "This is my test description"
The only possible downside of this solution is that it overrides the default elementary/dbt description. For example, the default description for this test would be: "Column-level anomaly monitors (null_count, null_percent, zero_count, string_length, variance, etc.) on the column according to its data type."
You may also use tags to group tests and make them easier to manage.
Let me know if this helps!Mar
01/14/2025, 1:37 PM