shobia
11/06/2025, 9:50 AMkapa.ai
11/06/2025, 9:50 AMkapa.ai
11/06/2025, 9:50 AMyaml models: - name: model_name tests: - elementary.volume_anomalies: # total volume (no timestamp) tags: ['elementary'] - elementary.volume_anomalies: # volume by bucket (with timestamp) tags: ['elementary'] timestamp_column: processed_at This way, the first test runs without a timestamp (total table volume), and the second runs with the specified timestamp column (bucketed by time). However, if you set the timestamp_column at the model config level, it will apply to all tests unless you override it at the test level. Attempts to explicitly set timestamp_column: null to override a model-level config do not work as expected in dbt/Elementary as of now. If you need both tests, you should avoid setting the timestamp_column at the model config level and instead specify it only at the test level where needed. Alternatively, some users duplicate the model in the YAML to achieve this, but that's not ideal. This approach is confirmed by Elementary support staff and community discussions: you can define both tests at the test level, but not by mixing model-level and test-level timestamp_column settings, and not by setting timestamp_column: null to override a model-level config. See the detailed discussion here: [Slack thread on volume_anomalies with and without timestamp](https://slack.com/archives/C02CTC89LAX/p1684167121364969).