How-to guide
How to reconcile source and destination data
How do you check whether a pipeline moved the right records and values?
Compare source and destination at the same business grain and cut-off time. Check keys and values as well as totals, state the permitted tolerance in advance, and retain sample differences a reader can trace back to the underlying records.
Make the two populations comparable
Agree what one record represents and which arrivals belong to the comparison window. A moving source can make a correct pipeline appear wrong.
- Fix the as-of time or watermark, business key, filters and treatment of late updates.
- Compare missing and extra keys, duplicate keys and important values through independently obtained extracts. Reconcile totals within meaningful groups.
- Investigate mismatches at record level and account for every excluded record. Keep the cut-off, queries or extract identities, tolerance and remaining discrepancies.
Worked example
A total of 240 can conceal two mistakes
A source lists 120 units each for depots A and B. A destination lists 110 and 130. Both totals are 240, so a grand-total check passes. Comparing by depot at the same cut-off identifies two discrepancies and gives the pipeline owner a concrete pair to trace.
Try it on your pull request
Choose a change in your repository and tell Cue April what should happen. Review the proposed checks before they run.
Try Cue April on your repository