Delta and Parquet
Delta and Parquet are different layers
Parquet is a column-oriented file format. Delta Lake adds table-level transaction metadata to data files, allowing readers to identify a consistent committed snapshot instead of interpreting every file as current data. A directory containing Parquet is not automatically a Delta table. The lab uses CSV and an intentionally simplified action list, not actual Parquet or Delta metadata.
Transaction log and snapshot reasoning
Delta records actions under _delta_log; checkpoints can accelerate reconstruction of the table state. A committed version defines which files are logically active, subject to table features and reader compatibility. Writers use the table engine to coordinate transactions; do not edit log files or data files by hand. Time travel requires retained log history and required data files. Compaction may replace files without changing logical row contents; VACUUM can remove unreferenced files and shorten recoverable history.
Worked example 1 — reconstruct two snapshots
The simulated v0 adds a and b: a holds S01/S03, b holds S02. v1 removes b and adds c: c holds corrected S02 and new S05. Active sets are {a,b} then {a,c}. The old file b can remain physically present after logical removal. Scanning all three files would count S02 twice. v0 totals 25,000 cents; v1 totals 29,000 cents. This miniature example omits checkpoints, concurrent commits, deletion vectors and actual protocol details.
Worked example 2 — inspect without writing
On an approved Spark lakehouse, with a real synthetic Delta table called sales_silver, inspect its metadata with the following read-only examples (native NOT RUN):
DESCRIBE DETAIL sales_silver;DESCRIBE HISTORY sales_silver;SELECT Region, SUM(RevenueCents) AS RevenueCentsFROM sales_silver VERSION AS OF 0 GROUP BY Region;The last query requires that version 0 exists and is retained. If loaded to match the lab, expect N=17000, S=8000. Actual version numbers may differ; inspect history first. SQL analytics endpoint support is not assumed to match Spark syntax.
Operational trade-offs
Use table-aware readers, not arbitrary Parquet globbing. Track version and source timestamp separately. Retention must satisfy recovery and governance needs; never run VACUUM or RESTORE on shared data as an exercise. RESTORE is a new write, not a magical undo of inaccessible files. Before claiming recovery, check log and data retention plus downstream dependencies. No measured compression or I/O savings are claimed.
Practice and references
Reconstruct both active sets and explain why deleting file b could prevent v0 recovery. Compute the change in revenue and run the offline verifier. Read Delta overview, metadata inspection, time travel and VACUUM. Next: permissions and schema changes.