Data and Knowledge SystemsVersioning and migrationPrincipal
Why can a recorded Delta table version become unreadable, and how should training data retention prevent it?
By Amit Kumar3 min readWorked answer includedReviewed 28 Sept 2026
The question
Interview question
A training manifest records a Delta table version, but a later time-travel read fails after VACUUM. Explain the dependency on transaction metadata and physical files, design a governed replay horizon and dataset manifest, and distinguish future retention changes from recovering deleted files or a trainer that consumed changing data.
Draft your approach first
Take a few minutes before you read the answer. Name the constraint that matters most, the failure you are designing for and how you would know it worked.
Reveal the worked answerWorked answer
A Delta version identifies a transaction-log state. Reading that old state still requires the data files it referenced. If those files were removed from the current table and later deleted by VACUUM, a fresh read that needs those files cannot reconstruct the old state merely because its version number remains in an experiment record. Databricks' VACUUM documentation says vacuuming removes files needed for older time travel. Log retention and data-file retention are separate controls. An old log entry remaining available is not proof its files remain.
Consider a hypothetical table where version 42 references file F1. On day one, version 43 rewrites that data into F2 and removes F1 from the current snapshot. If the configured retention permits deleting F1 after seven days since removal, a later VACUUM can delete it. The version 42 log can still name F1, but the reader cannot obtain its bytes. The example uses an explicit retention policy rather than asserting a universal runtime default. Log cleanup can independently remove metadata needed to reconstruct older versions.
A warm disk cache can sometimes serve previously read file contents after storage deletion. That does not provide a durable replay guarantee. Verify the retention promise from a fresh reader without those cached bytes, or after the relevant cache is cleared through its supported lifecycle. The cited Databricks documentation explicitly describes this cache exception.
I would ask for the training run's exact table ID and version, file paths or snapshot manifest, retention settings at that time, vacuum history, and the error on a VERSION AS OF read. Check whether the trainer actually read a fixed snapshot. If it streamed the changing table for days, one version number recorded at job start may not describe all the examples it consumed. Data may also come from multiple tables, external object stores and transforms whose code or configuration changed. Reproducibility is a chain, not a single Delta version.
Separate the dataset’s semantic identity from the available storage. A manifest can pin table identity, version and referenced objects, but it does not reserve those objects. A retention mechanism or materialized snapshot must actually keep the required bytes available and authorized. Check all input tables and external assets, not just the one version shown in the experiment UI. Where exact replay is required, compare a realized input manifest against the selected snapshot rather than assuming the trainer obeyed a version recorded at startup.
For future runs, define the required replay horizon before setting retention. A training pipeline that needs six-month exact replay must retain the referenced files for that period or materialize a governed immutable training snapshot. Store its manifest, content checksums, transform version, tokenizer and sample ordering alongside the model checkpoint. Verify by rerunning a sample read at the oldest promised age, not by checking that the metadata record still exists. Storage cost and deletion obligations are real constraints. An immutable copy cannot casually override a customer's erasure or retention policy, so the replay promise must state the allowed exceptions.
Can we simply lengthen VACUUM retention today and recover the old run? No, extending future retention cannot bring back files already removed. Restore from a verified backup containing the required metadata and data files if one exists, or mark the run as not exactly reproducible and compare at a weaker level. Say clearly which level of comparison is still possible.
Related questions
Keep practising data and knowledge systems
Follow another question in this area, or search the complete library.
Get my essays on AI engineering and distributed systems by email. Subscribe to ArchCrux