Skip to content

Joost Boonzajer Flaes via Elementary: Add volume and freshness anomaly tests for stg_orders and stg_payments#893

Open
joostboon wants to merge 1 commit intomasterfrom
elementary-create-dbt-tests-20260323125015818080
Open

Joost Boonzajer Flaes via Elementary: Add volume and freshness anomaly tests for stg_orders and stg_payments#893
joostboon wants to merge 1 commit intomasterfrom
elementary-create-dbt-tests-20260323125015818080

Conversation

@joostboon
Copy link
Copy Markdown
Collaborator

Summary\n\nAdds volume and freshness anomaly detection tests to stg_orders and stg_payments to improve upstream coverage for the critical cpa_and_roas model.\n\n### Tests Added\n\nstg_orders:\n- elementary.volume_anomalies — Detects sudden drops or spikes in order volume that would silently distort CPA/ROAS calculations.\n- elementary.freshness_anomalies — Catches stale order data before it causes misleading marketing performance metrics.\n\nstg_payments:\n- elementary.volume_anomalies — Monitors payment record volume to prevent undercounting revenue.\n- elementary.freshness_anomalies — Ensures payment data stays current to maintain accurate ROAS reporting.

Created by: joost@elementary-data.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant