Skip to content

Joost Boonzajer Flaes via Elementary: Add volume anomaly tests to staging models#899

Open
joostboon wants to merge 1 commit intomasterfrom
elementary-add-volume-tests-staging-models-482917
Open

Joost Boonzajer Flaes via Elementary: Add volume anomaly tests to staging models#899
joostboon wants to merge 1 commit intomasterfrom
elementary-add-volume-tests-staging-models-482917

Conversation

@joostboon
Copy link
Copy Markdown
Collaborator

Summary\n\nAdds volume anomaly tests to stg_orders and stg_payments to improve upstream coverage for the critical cpa_and_roas model.\n\n### Changes\n- stg_orders: Added elementary.volume_anomalies test to detect sudden drops or spikes in row count that could silently reduce the number of orders flowing into downstream financial models.\n- stg_payments: Added elementary.volume_anomalies test to monitor payment volume, since payment records determine the amount column used in revenue and ROAS calculations.\n\n### Why\nBoth staging models feed into the critical cpa_and_roas model (via orderscustomer_conversionscpa_and_roas). Without volume monitoring, data ingestion failures could go undetected and corrupt CPA and ROAS metrics.

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