Data architecture

Hudi to Iceberg: Keep Updates Intact

Plan a Hudi to Iceberg migration around current records, schema history and cutover checks, with practical safeguards for updates, deletes and old data.
By MR Solutions
8 min readPublished
Translucent data stacks connected by a teal bridge, with three amber tiles beneath a ring bearing a check mark.

Move the data without changing its meaning

A lake migration can appear successful while changing the numbers people rely on. An old order version might reappear, a deletion might be missed, or a renamed column might lose historical values. For a business owner, the acceptance question is whether reports and downstream processes still see the right records.

Hudi to Iceberg migration therefore needs an agreed data boundary and evidence of equivalence. Choose the method after checking how Hudi stores updates, what has happened to the schema and whether the business can pause writes. The decision process below is proposed guidance; no migration or workload measurements were performed for this article.

Start with the logical table

Apache Hudi distinguishes Copy-on-Write (CoW) and Merge-on-Read (MoR). CoW updates create new base-file slices; Hudi readers use its timeline to select the current committed slices. A directory of Parquet files can also contain older versions, so listing files is not equivalent to reading the table.

MoR adds another boundary: recent changes can live in delta logs alongside base Parquet files. A Hudi snapshot query merges them, while a read-optimised query reads base files and can lag behind. Compare the destination with the intended Hudi snapshot, rather than accepting agreement with an older read-optimised view.

Before selecting a route, inventory table type, record keys, ordering rules, partition layout, schema changes, pending table services and all writers. Agree whether the destination needs only the current state or also historical query and audit access. Treat historical retention as a separate requirement to prove.

Choose between reuse and rewrite

The AWS walkthrough published on 12 November 2026 uses AWS Glue 5.1 interactive sessions to demonstrate file registration, Apache XTable metadata synchronisation and full rewriting. It is a worked example with sample data, rather than evidence that one approach will meet your production window.

Reusing files with Iceberg add_files avoids rewriting the data, but inherits the existing layout. AWS prepares CoW by cleaning superseded file versions, and MoR by completing compaction and then cleaning. The aim is to expose the current base files without outstanding log changes. Rehearse this on a protected copy: reducing retention on the live source can affect recovery requirements.

Apache XTable offers metadata translation and repeated synchronisation. In the version demonstrated by AWS, its MoR path reflects base files rather than delta logs, so compaction is still needed for freshness. XTable uses Hudi metadata to select current slices, unlike a raw directory scan. Confirm that behaviour in the exact release you intend to run before treating it as a continuing migration bridge.

A full rewrite reads the logical Hudi table and writes a separate Iceberg table, using an approach such as CREATE TABLE AS SELECT or a controlled read-and-write job. It needs extra processing, time and storage, but allows a deliberate schema and layout. For this decision method, favour evaluating a rewrite when file history is uncertain, schema repair is needed or independent source retention matters.

For large tables, plan restartable batches and a consistent source boundary. Copying partitions independently while writes continue is not, by itself, a complete catch-up strategy. Specify how later inserts, updates and deletes will reach the target before approving an online migration.

Test old files before trusting new names

AWS warns that its in-place add_files and XTable paths register existing Parquet files as they are. Files written before a source column rename can retain the old name, causing reads under the new name to return null. A matching destination schema alone does not prove that historical values remain readable.

Build a rehearsal containing records from before and after each relevant schema change. Check the renamed field by key and by file generation, including null counts. If this exposes a mismatch, evaluate a full rewrite through a Hudi reader whose schema handling you have verified. Do not assume a rewrite automatically repairs an already incorrect source read.

Iceberg’s add_files documentation separately warns that it does not validate the imported files’ schema against the target table. Its duplicate-file check also should not be mistaken for proof that each business key has only its intended current row.

Assign ownership of shared files

File reuse leaves Hudi and Iceberg dependent on the same objects. Iceberg documents that files added through add_files become subject to its lifecycle operations, including physical deletion. AWS warns against destructive Iceberg maintenance and managed optimisers during the shared-file phase.

Before rehearsal, assign an owner for Hudi cleaning, Iceberg snapshot expiry, orphan-file removal, managed optimisation and manual object deletion. Protect the files required by both readers, and freeze or coordinate any source maintenance that could invalidate the target. Keep one authoritative writer until a separately tested arrangement permits otherwise.

AWS describes gc.enabled=false as a guardrail for its add_files path, but says its demonstrated XTable incremental synchronisation needs garbage collection enabled. Do not apply one setting as a universal migration recipe. Verify the chosen tool’s requirements and enforce lifecycle restrictions operationally while files are shared.

Make validation a cutover gate

Agree pass criteria with the owners of the reports and processes before moving production traffic. The following are proposed Iceberg data validation checks, not results observed by MR Solutions. Run them against an agreed Hudi commit boundary and record the corresponding target snapshot.

Matching total row counts is only a starting point: a missing row and a duplicated row can cancel out. Compare keys and values in both directions, investigate every unexplained difference and keep the evidence with the cutover decision.

  • Check counts by partition and business key, duplicate keys, null rates and relevant business totals. Include older partitions that receive late corrections.
  • Trace known inserts, repeated updates and deletions. Confirm deleted keys stay absent and that the intended winning value survives out-of-order arrivals.
  • Compare historical and recent records around column renames, type changes and partition changes. Use the actual query engines and access roles consumers will use.
  • Interrupt and restart a batch or synchronisation run. Test retries, compaction and stale reader metadata, and verify that no records are missed or applied twice.
  • Measure representative queries and the full catch-up delay under expected load. Budget for temporary storage, compute and operational effort using those results.

Plan the last update and the way back

For a migration that can pause writes, propose a short controlled sequence: stop producers and drain in-flight work; record the final completed Hudi boundary; complete the required preparation or final copy; validate; then move readers and writers under named ownership. Resume business traffic only when acceptance checks pass.

If writes must continue, require a tested change-delivery mechanism with explicit ordering, deletion handling and replay boundaries. The initial copy and final catch-up must join without gaps. Repeated metadata synchronisation should not be assumed to support independent writes from both table formats.

Keep rollback concrete. Before the first Iceberg-only write, returning readers to a protected Hudi state may be feasible. Afterwards, switching a catalogue pointer back would omit changes made only in Iceberg unless a tested replay path exists. Agree the rollback deadline, retained source state and treatment of new writes in advance.

Start with one representative table that includes updates, deletions and older data. Have its owner review the schema-history checks and reconciliation evidence before extending the approach. Confirm the deployed Glue, Spark, Hudi, Iceberg and XTable versions and relevant fixes; the example notebook’s runtime is not a production compatibility guarantee.

Frequently asked questions

Can Hudi Parquet files simply be registered in Iceberg?

Iceberg add_files can register existing files, but it does not validate their schema or interpret Hudi’s timeline. AWS prepares current base files first: cleaning for CoW, and compaction followed by cleaning for MoR. Validate the resulting records before cutover.

Why can a Merge-on-Read migration miss updates?

Hudi MoR can hold recent updates and deletes in delta logs. A base-file-only migration sees the read-optimised view rather than the merged snapshot. Complete and verify the required compaction, or use a verified snapshot read for a full rewrite.

Should a table with renamed columns be rewritten?

AWS recommends full migration for tables with column-rename history because its in-place paths can return null for values in older files. Test the historical source read and destination values before choosing the rewrite; a matching schema is insufficient.

Are matching row counts enough to approve cutover?

No. Older file slices can create duplicates and base-only MoR reads can miss changes. Use key-level and value-level comparisons at an agreed source boundary, including deleted records and historical fields, before approving the move.

← Back to the article library

Start with a conversation

Put your ideas into practice.

Tell us about your business and what you want to improve. We’ll help you find a sensible place to start.

Discuss Your Project