The interview problem
A source table was wrong for two days. Find affected derived datasets and decide what to recompute without assuming every descendant is equally affected.
Original practice, not a reported company interview. Scenarios and numbers are illustrative. Interview date: not applicable. Sources retrieved October 1, 2026.
1. Scope and worked approach
Assume jobs emit run-level lineage with input/output dataset versions and partitions. Store dataset, job and run identities separately. Traverse from the affected source versions through completed runs, preserving transformation and partition evidence. Distinguish potential influence from proven row-level impact. Plan recomputation in dependency order and publish corrected outputs as new versions while tracking consumers still on old ones.
2. Trace the design or derivation
Find corrected input version → traverse consuming runs → inspect partition dependencies → rebuild → publish
Distinguish a failed run that read an input from a successful run that published an output. The repair planner should operate on committed output lineage and record manual dependencies when automation cannot observe them. Present unknown edges as uncertainty rather than silently treating an incomplete graph as complete.
3. Calculate the example
If a job reads ten daily partitions but writes only the matching day's output, correcting one partition may require one output rebuild. If a rolling seven-day aggregate reads that day in seven runs, up to seven output partitions are candidates. A dataset-level edge alone cannot make that distinction.
4. Failure cases and trade-offs
Missing lineage events create blind spots. Dynamic SQL and external side effects may escape automatic capture. Recomputing descendants can overwrite later legitimate data unless output versions are coordinated. Fine-grained lineage narrows repair but costs collection and storage; coarse lineage is conservative and may over-recompute.
5. Validation, follow-ups and self-review
Introduce a known source correction and compare predicted impact with explicit input manifests. Test incomplete runs and renamed datasets. Follow-up: what confidence accompanies a graph with missing producers? Reward versioned run evidence and separation of reachability from actual impact.
Sources and related practice
Technical reference: github.com — Jobs, runs and dataset lineage; partition-impact example is original.
Source publication/update: Not established. Retrieved October 1, 2026. The workflow, calculations and review exercises are original; this reference is not evidence that a company asked this question.
Continue with Design training-data provenance and deletion; Design a change-data-capture pipeline with snapshot recovery.
Continue your preparation
Choose a connected learning path or browse more System design questions. Read our editorial method and attribution policy.