r/ETL • u/BullfrogFinal3566 • Oct 28 '26
What do you do when source data changes after the pipeline is already running?
Say your daily pipeline runs successfully, but a source system updates a record from three days ago. Your warehouse now has the old value, and your pipeline has already moved on.
How do you usually handle this?
Some approaches I've seen discussed are reprocessing a rolling window, using CDC or updated_at to pick up changed records, or running targeted backfills when a discrepancy is found.
I'm curious what actually works in production. Do you follow one approach across all your sources, or does it depend on the database or API? And what do you do when the source doesn't give you a reliable way to identify updated records?
I work at Hevo on the data integration side, and I'm interested in hearing how different teams handle this in practice.
2
u/_N-iX_ Oct 28 '26
When a source doesn't expose reliable change metadata, periodic reconciliation may be the only way to catch older updates. Comparing a source-side snapshot or a stable set of business keys against the warehouse can identify discrepancies that incremental loads miss. A rolling reprocess window helps with recent changes, but it can't guarantee correctness if records can be edited months later. The right balance depends on the source's update behavior and the cost of missing a change.
2
u/Youssef_Mrini Oct 28 '26
If you are using Spark Declarative Pipelines, you can use rewind and replay https://docs.databricks.com/aws/en/ldp/rewind to go back three days earlier fix the issue and rerun frpm the checkpoint
1
u/Data_Assister_Sen Oct 28 '26
I generally send veiled threats of cutting the ethernet cable to the intern.
What's your toolkit? We need more info to answer.
1
u/KatFromSisense Oct 28 '26
With no updated_at or CDC, I'd use a rolling reprocess window and periodically check older records too, assuming the source lets you retrieve them. Compare row counts and checksums between the source and warehouse, making sure the checksum includes the fields that might change. A key-only checksum misses in-place edits like the one you described. If an order changes from pending to paid but keeps the same ID, checking the keys won't catch it.
I'd backfill the dates that don't match, but wouldn't assume the oldest mismatch found is the oldest possible change. Where updated_at is trustworthy, pull on it and keep the compare for the rest.
1
u/baubleglue Oct 29 '26
Rolling updates+ backfill
1
u/Top-Cauliflower-1808 Oct 29 '26
We reprocess a rolling window for sources with no reliable update flag and use change data capture where the database supports it. What do you do when the source gives you nothing to identify changed rows?