Data Versioning and Dataset Management

Git-like versioning for large datasets and data lakes using DVC, Delta Lake, Apache Iceberg, and LakeFS.

Overview

Why data versioning matters

A model retrained weeks later can behave completely differently if its dataset changed silently. Datasets are gigabytes or terabytes, live in object storage and are mutated in place, so plain Git cannot track them. Data versioning tools separate a lightweight metadata pointer from the heavy payload.

A reproducible training run rests on three versions: the code (a Git commit), the data (a DVC pointer or a Delta or Iceberg snapshot) and the environment (an image digest or a conda lock). An experiment tracker stores all three with the run.

Four tools cover the data part, and each versions data in its own way.

  • DVC: a Git companion for data files. It keeps .dvc pointers in Git and the bytes in a remote, and it is best known for reproducible pipelines with a content-hash cache.
  • Delta Lake: a storage layer for Spark lakes. It versions through a JSON transaction log in _delta_log/, and it is best known for ACID writes, time travel and schema enforcement.
  • Apache Iceberg: an open table format spec. It versions through snapshots in a metadata tree, and it is best known for hidden partitioning, partition evolution and support in many engines.
  • LakeFS: Git semantics over object storage. It versions through zero-copy branches and commits, and it is best known for letting you branch, validate and merge whole datasets.

The sections below take them in that order.

Interview questions

  • Walk me through how you would make a model training run fully reproducible using DVC.
  • How does Apache Iceberg handle partition evolution, and why is it superior to the Hive partition model?
  • Describe a data branching strategy for a team running multiple parallel ML experiments using LakeFS.
  • What are the trade-offs between Delta Lake, Apache Iceberg, and Apache Hudi for ML use cases?

Sign up free to read the full topic

More MLOps & LLMOps topics

Start free on Cariara · Coding problems · System design studio