Leon Kohorst
05/09/2025, 9:10 AMkapa.ai
05/09/2025, 9:10 AMkapa.ai
05/09/2025, 9:10 AMLeon Kohorst
05/09/2025, 9:13 AMkapa.ai
05/09/2025, 9:13 AMkapa.ai
05/09/2025, 9:13 AMyaml models: - name: your_model_name tests: - elementary.volume_anomalies: timestamp_column: your_timestamp_column Replace your_timestamp_column with the actual column name in your table that contains valid timestamp or date values. This ensures that Elementary can correctly bucket your data over time and display proper dates in the UI [docs: timestamp_column](https://docs.elementary-data.com/data-tests/anomaly-detection-configuration/timestamp-column). If you do not specify a timestamp column, Elementary will process the entire table as a single bucket, and the UI may show "Invalid Date" due to the absence of time-based grouping [Slack discussion on Invalid Date in UI](https://slack.com/archives/C02CTC89LAX/p1667504828562969). Example for a column_anomalies test: yaml models: - name: your_model_name columns: - name: your_column tests: - elementary.column_anomalies: timestamp_column: your_timestamp_column column_anomalies: - null_count Always ensure the timestamp column exists in your model and contains valid, non-null timestamp or date values.Leon Kohorst
05/09/2025, 9:14 AMkapa.ai
05/09/2025, 9:14 AMkapa.ai
05/09/2025, 9:14 AMtests: key in your YAML), the approach is the same for Elementary anomaly detection tests: you define the test under the tests: section for your model or column, and you can include the timestamp_column parameter directly in the test configuration. Here’s an example of how it should look in a dbt YAML file: yaml models: - name: your_model_name tests: - elementary.volume_anomalies: timestamp_column: your_timestamp_column Or for a column-level test: yaml models: - name: your_model_name columns: - name: your_column tests: - elementary.column_anomalies: timestamp_column: your_timestamp_column column_anomalies: - null_count This is the standard way to define Elementary tests within the dbt test block. The key is to ensure that the timestamp_column is specified and points to a valid timestamp or date column in your data, as this is required for proper time bucketing and to avoid UI issues like "Invalid Date" [docs: timestamp_column](https://docs.elementary-data.com/data-tests/anomaly-detection-configuration/timestamp-column). If you meant something different by "dbt_test," please clarify your question.Noya Offer
05/12/2025, 7:01 AM