Data Pipeline Invariants and Reconciliation
Check record counts and value constraints at a reproducible input boundary, while preserving evidence about intentionally rejected records.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
A total needs a defined population
For one fixed source offset interval, a pipeline can require that each input is classified as accepted, rejected with a reason, or intentionally duplicated under a documented rule. Compare counts using the same input range and retry identity. Comparing an upstream count from one time span with a downstream count from another can report a discrepancy even when processing is correct.
Preserve enough information to diagnose what changed
An aggregate mismatch can be localized by partition and then by record identity. Schema versions, source positions and transformation revisions make such comparisons reproducible. Track late corrections separately from a missing event. A validation process should avoid exposing sensitive input unnecessarily in its diagnostic records. Change capture explains source boundaries. Late data and retractions explain why valid counts can still change.[1][2]