Machine Learning pathway increased my salary by 40%
Open Table Formats: Iceberg, Delta and Hudi
Understand how open table formats bring ACID transactions, schema evolution, time travel and partition evolution to object storage, and how to operate them: compaction, catalog choice, concurrency, migration and the small-file problem that quietly destroys query performance.
Executive Summary
Object storage is cheap, durable and fundamentally unsuitable for analytics on its own: it has no transactions, no atomic renames, no consistent listing and no notion of a table. Open table formats supply that missing layer. Apache Iceberg, Delta Lake and Apache Hudi each maintain a metadata tree over immutable data files, enabling ACID commits, snapshot isolation, schema evolution, time travel and partition evolution while keeping the data in open columnar files that any engine can read. The benefit is genuine: one governed copy of data, multiple engines, and the ability to correct a mistake without rewriting everything. The costs are equally real. Every format requires compaction, since frequent small commits create files too small to query efficiently. Catalogs become critical infrastructure. Concurrency behaviour differs. And migration between formats, while marketed as simple, involves snapshot semantics that must be understood before committing. This topic covers the architecture of each format, their differences, operational requirements and migration strategy.
Definition
An open table format is a specification for managing a set of data files in object storage as a transactional table. It defines how commits are made atomically, how table state is represented as metadata rather than as a directory listing, how schemas and partitions evolve, and how readers select a consistent snapshot. Iceberg uses a metadata tree of table metadata, manifests and manifest lists. Delta Lake uses a transaction log of JSON commits with checkpointed Parquet files. Hudi uses a timeline of instants with copy-on-write or merge-on-read table services. All three store the actual data in open columnar formats such as Parquet, which is what makes the data portable even though the table semantics differ. The practical consequence is that engines which understand the format can read and write the same table concurrently with snapshot isolation, without copying data between warehouses.
Why It Matters
Without a table format, a lake is a directory of files whose meaning depends on conventions that nobody documents and every engine interprets differently. A partial write leaves a directory in an inconsistent state, a schema change breaks readers, and correcting a bad load requires deleting and rewriting a partition while consumers see an inconsistent view. A table format solves these problems structurally. It also enables the architecture most organisations now want: one copy of data in open storage, read by a warehouse, a streaming engine and a machine learning stack, with a catalogue providing governance over all of them. Choosing a format is therefore an architectural decision with multi-year consequences, and operating it well determines whether the lakehouse delivers on its promise or becomes an expensive collection of small files.
Evolution of the Technology
Hive Tables -> Delta Lake and Hudi -> Apache Iceberg -> Multi-Engine Open Tables. Hive-style tables used directory conventions with no transactions and no atomicity. Delta Lake and Hudi added transactional logs and table services, each with a distinct design centre: Delta optimised for Spark workloads, Hudi for upserts and incremental processing. Iceberg separated table semantics from engine implementation with a specification-first design, which drove rapid adoption across engines and vendors. The current state is convergence: all three support the core capabilities, engine support has broadened, and the practical differentiator is operational maturity, catalog integration and the specifics of each workload rather than the existence of features.
Learning Objectives
- Explain how a table format provides ACID semantics on object storage
- Compare Iceberg, Delta Lake and Hudi architectures and trade-offs
- Design partitioning and clustering for query pruning
- Operate compaction and understand the small-file problem
- Choose a catalog and understand its role in governance
- Handle concurrent writes and understand isolation behaviour
- Use time travel and snapshots for recovery and audit
- Plan a migration between formats or from Hive tables
- Tune file sizes for read and write workloads
- Monitor table health: file counts, snapshot growth, compaction lag
Prerequisites
- Experience with analytical query engines and SQL
- Understanding of columnar storage such as Parquet
- Familiarity with object storage characteristics and consistency
- Knowledge of partitioning concepts in data lakes
How a Table Format Provides Transactions
The central trick of every open table format is that the table is defined by metadata rather than by the contents of a directory. A commit writes new data files, then atomically updates metadata that points to a complete, consistent set of files. Readers resolve the current snapshot from that metadata, so they never observe a partially written state. Because the metadata update is a single atomic operation, the commit either fully succeeds or leaves the previous snapshot intact. This is what enables concurrent readers during a write, rollback after a failed job, and the ability to correct data without a window of inconsistency. The formats differ in how metadata is structured. Iceberg maintains a hierarchical tree with manifests and manifest lists, enabling efficient planning by skipping irrelevant files. Delta maintains an ordered transaction log with periodic checkpoints. Hudi maintains a timeline of instants with file groups and indexes. The consequences appear in planning performance at scale, concurrency behaviour and the cost of metadata operations.
Metadata Architectures
| Format | Metadata Structure | Planning Characteristic |
|---|---|---|
| Iceberg | Table metadata, manifest lists, manifests | Efficient file skipping via manifests |
| Delta Lake | Ordered JSON log with Parquet checkpoints | Fast for small logs, checkpoint dependent at scale |
| Hudi | Timeline of instants with file groups and index | Strong for upserts and incremental reads |
| Hive | Directory conventions only | Full listing, no transactions |
Partitioning, Clustering and Pruning
Partitioning determines which files a query must read, and therefore determines performance more than any engine setting. Traditional partitioning uses directory structure and a fixed set of values, which breaks down when a column has high cardinality or when the query pattern changes. Iceberg introduced hidden partitioning, where the partition transform is defined in table metadata rather than inferred from directories, so a query filtering on a timestamp column prunes correctly without the user knowing the partition scheme. It also supports partition evolution: changing the partition spec without rewriting existing data, with older files remaining readable under the old spec. Delta offers generated columns and liquid clustering, and Hudi provides key-based indexing alongside partition paths. Whatever the mechanism, the design principle is the same: partition on the columns most frequently filtered, keep partition counts manageable, and cluster within partitions on secondary filter columns. Over-partitioning is as damaging as none, because it multiplies file counts and metadata overhead.
Partitioning Approaches
| Approach | Mechanism | Trade-off |
|---|---|---|
| Directory partitioning | Folder per value | Simple, breaks on high cardinality |
| Hidden partitioning | Transform in metadata | Queries prune without knowing scheme |
| Partition evolution | Change spec without rewrite | Old files readable under old spec |
| Clustering | Data layout within files | Better pruning, requires maintenance |
| Z-ordering | Multi-dimensional clustering | Effective for multi-column filters |
Compaction and the Small-File Problem
Streaming and frequent batch commits produce many small files. Each file carries overhead in metadata, planning and read setup, and an engine reading ten thousand small files spends more time on overhead than on data. Compaction rewrites groups of small files into larger ones, restoring read efficiency. Every format requires it and each implements it differently: Iceberg has rewrite actions, Delta has optimize and compaction, Hudi has table services including clustering and compaction for merge-on-read tables. The operational discipline matters more than the mechanism. Define a target file size appropriate to the engine, run compaction on a schedule proportional to write rate, monitor file counts and average size per table, and exclude tables that are written once and read rarely. Compaction is also the moment to apply clustering and to expire old snapshots, which is what keeps metadata growth bounded.
Compaction Considerations
| Aspect | Consideration |
|---|---|
| Target file size | Match engine preference, commonly 128 to 512 MB |
| Frequency | Proportional to commit rate, not fixed |
| Cost | Rewrites data, so schedule off-peak |
| Snapshot expiry | Prevents unbounded metadata growth |
| Clustering | Apply during compaction where supported |
| Monitoring | File count and average size per table |
Catalogs, Governance and Multi-Engine Access
A catalog maps table names to metadata locations and holds the pointer to the current snapshot. It is the component that turns a set of files into a named, discoverable, permissioned table. Catalog choice determines governance capability: a catalog integrated with a metastore and policy engine can enforce access, track lineage and provide a single namespace across engines, whereas file-based catalogs offer convenience without governance. This is why catalog decisions are architectural rather than tactical. Multi-engine access is the main promise of open formats, and it depends on every engine supporting the same format version and the same catalog. Verify support for the specific features in use, since format versions and capabilities are adopted unevenly. Also plan for catalog availability: if the catalog is down, tables are unreadable even though the data is intact, which makes it as critical as any database.
Catalog Types
| Type | Governance | Best For |
|---|---|---|
| Hive Metastore | Moderate, widely supported | Existing Hadoop estates |
| REST catalog | Depends on implementation | Vendor-neutral multi-engine access |
| Cloud-native catalog | Strong with integrated policy | Single-cloud governed platforms |
| File-based catalog | Weak, no central policy | Local development and testing |
Writing to an Open Table Safely
From job start to a queryable snapshot
Table Health Maintenance
Keeping a table fast and metadata bounded
Choosing Between Iceberg, Delta and Hudi
The three formats have converged on core capability, so the decision rests on workload shape, ecosystem and operations. Iceberg is specification-first, with broad engine support and strong partition evolution, which suits multi-engine environments where no single vendor should own the table semantics. Delta is tightly integrated with the Spark and Databricks ecosystem, with mature tooling and a straightforward transaction log, which suits organisations already standardised there. Hudi has the strongest native support for upserts and incremental pulls, which suits pipelines where records are updated continuously and downstream consumers need change streams. Beyond features, consider operational maturity: compaction tooling, snapshot expiry, monitoring integrations and the availability of engineers who have run the format at scale. A format that is theoretically superior but operated by a team learning it under incident pressure will underperform a familiar one. Write the decision down with the workload assumptions that justified it, because those assumptions are what will change.
Format Comparison
| Aspect | Iceberg | Delta Lake | Hudi |
|---|---|---|---|
| Design centre | Specification-first, engine neutral | Spark and lakehouse integration | Upserts and incremental processing |
| Partition evolution | Native | Limited, clustering based | Partition path changes |
| Upsert support | Merge support engine-dependent | MERGE with mature tooling | Strong native upsert and index |
| Time travel | Snapshots | Version based | Timeline instants |
| Ecosystem breadth | Very broad | Strong in Spark ecosystem | Moderate |
| Operational focus | Compaction and expiry | Optimize and vacuum | Table services |
Migration from Hive Tables and Between Formats
Migration is usually presented as a metadata operation, and it often is, but the semantics require care. Converting a Hive table to an open format can be done in place by generating metadata that references existing Parquet files, which is fast and avoids rewriting data. The risks are practical: files must be compatible with the target format, partition layouts must be representable, and any data written after the metadata snapshot must be handled. Cross-format migration is more involved, since the transaction logs are not interchangeable, and typically requires a rewrite or a dual-write period. The safe pattern is to run both tables in parallel, validate row counts and checksums, cut readers over, and keep the old table available for a defined period. For any migration, verify that time travel expectations are met, because audit requirements frequently assume the ability to query a past snapshot that no longer exists after migration.
Migration Paths
| Path | Method | Risk |
|---|---|---|
| Hive to Iceberg | Metadata generation over existing files | File compatibility and partition mapping |
| Hive to Delta | Convert or rewrite | In-place support varies by version |
| Iceberg to Delta | Rewrite or dual write | No log interoperability |
| Delta to Iceberg | Rewrite or dual write | Snapshot history not transferred |
| Within format upgrade | Metadata upgrade | Engine version compatibility |
Frameworks & Standards
Operational frameworks keep open tables healthy as write rates and consumer counts grow.
Table Format Frameworks
| Framework | Focus | Use |
|---|---|---|
| Table health monitoring | File count, size, snapshots | Every production table |
| Compaction policy | Target size and cadence | Tables with frequent commits |
| Snapshot retention | Audit versus storage cost | All tables with time travel |
| Catalog governance | Namespace, policy, lineage | Multi-engine environments |
| Migration validation | Counts, checksums, snapshots | Any format change |
Tools & Technologies
| Category | Tools | Use Case |
|---|---|---|
| Iceberg implementations | Apache Iceberg, Nessie, Polaris, Unity Catalog | Engine-neutral tables with REST catalogs |
| Delta Lake | Delta Lake OSS, Databricks Runtime | Spark-native lakehouse tables |
| Hudi | Apache Hudi with Flink or Spark writers | Upsert-heavy and incremental pipelines |
| Query engines | Trino, Spark, Flink, Snowflake, BigQuery, Athena | Multi-engine access to the same tables |
| Catalogs | Hive Metastore, REST catalogs, cloud catalogs | Namespace, discovery and policy |
| Maintenance | Native rewrite actions, optimize, table services | Compaction, clustering and expiry |
| Monitoring | Custom metrics, platform observability, table dashboards | File counts, snapshot growth, compaction lag |
| Migration tooling | Metadata generators, dual-write pipelines | Moving from Hive or between formats |
Open Table Formats vs Plain Parquet on Object Storage
| Capability | Parquet Only | Open Table Format |
|---|---|---|
| Atomic commits | No | Yes |
| Concurrent readers during write | Inconsistent | Snapshot isolated |
| Schema evolution | Manual and risky | Managed |
| Time travel | Not possible | Snapshot or version based |
| Partition evolution | Rewrite required | Supported or manageable |
| Recovery from bad write | Manual deletion | Rollback to snapshot |
Enterprise Use Cases
Case Studies
Problem: A streaming pipeline committed every thirty seconds into a lakehouse table. After four months the table held over two million small files, queries took minutes to plan, and the team blamed the engine.
Architecture: Introduced scheduled compaction to a target file size, adjusted the commit interval, added monitoring on file count and average file size per table, and expired snapshots beyond the retention requirement.
Outcome: Planning time fell by an order of magnitude, storage cost decreased after expiry, and file health became a monitored metric rather than a discovery during an incident.
Lessons: Open formats make streaming writes easy and make maintenance mandatory; compaction is not optional at commit rates above a few per hour.
Problem: A Hive-based lake of several petabytes needed transactional semantics and multi-engine access, but a full rewrite was considered too expensive to schedule.
Architecture: Generated table metadata over existing Parquet files in place, ran old and new tables in parallel for six weeks with row count and checksum validation, cut readers over incrementally, then enabled compaction and snapshot expiry.
Outcome: Migration completed without rewriting data, with evidence of equivalence and no consumer-visible outage.
Lessons: In-place metadata migration is viable when file compatibility and partition mapping are verified, and parallel running provides the evidence that makes cutover safe.
Implementation Steps
Enterprise SOPs
Purpose: Keep tables performant and metadata bounded
Owner: Data Platform Engineering
Steps: Review health metrics, schedule compaction in low-usage window, rewrite small files to target size, apply clustering, expire snapshots per retention, remove orphan files, verify performance, log action
Evidence: Health metrics before and after, compaction records, expiry logs
Purpose: Balance audit needs against storage and metadata growth
Owner: Data Governance with Platform
Steps: Define retention per data class, configure expiry policy, verify audit requirements met, monitor metadata growth, review quarterly
Evidence: Retention policy, expiry configuration, audit sign-off
Purpose: Move tables without data loss or consumer impact
Owner: Data Platform Architect
Steps: Assess file compatibility, generate metadata or plan rewrite, run parallel validation, verify time travel expectations, cut over incrementally, retain old table for defined period, decommission with record
Evidence: Compatibility assessment, validation results, cutover records, decommission note
Operate a Governed Lakehouse Table Estate
Problem: A lakehouse holds two thousand tables written by batch, streaming and ad hoc jobs. Query performance has degraded gradually, storage cost has doubled in a year, and nobody can state which tables support time travel or how much history is retained.
- Format and catalog decision recorded with workload assumptions
- Partitioning standard for timestamp, category and tenant columns
- Compaction policy by table class with target file sizes
- Snapshot retention policy aligned to audit obligations per data class
- Migration plan for Hive tables with parallel validation
- Table health monitoring with alert thresholds on file count and snapshot growth
Architecture: Tables are standardised on an open format with a REST catalog providing a single namespace and integrated policy. Partitioning uses hidden transforms for timestamps and explicit partitions for tenant. Compaction runs on a schedule derived from commit rate, with target file sizes set per engine. Snapshot retention is configured per data class, with audit-critical tables retaining longer history. Hive tables migrate in place with metadata generation, validated in parallel before cutover. Health metrics feed a dashboard with alerts on file count, average file size and compaction lag.
Outcome: Query performance stabilises, storage growth is explained by retention policy rather than accumulation, and the estate has a documented, enforced maintenance regime.
Key Metrics & KPIs
Risks & Mitigation
Maturity Model
Future Roadmap
2026 Trends & Emerging Developments
Career Applications
Frequently Asked Questions
Research References
Continue this lesson with a subscription
Data Engineering & Intelligent Data Platforms is part of the paid catalogue. You have read the free preview. A subscription opens the rest of this lesson, the classroom slides and the assessment questions.
- The full lesson for this topic and every other catalogue topic
- Every classroom slide deck and worked example
- All assessments, with a verifiable certificate on completion
The Free-To-Learn library stays open to everyone and is not affected by this.
