What Is Apache Hudi? Upserts, Copy on Write and Merge on Read
Hudi stands for Hadoop Upserts Deletes and Incrementals, and the name tells you the point. Apache Hudi is a table format built for data that changes: records that arrive, get updated and get deleted all day. If your data lake is mostly append-only, Hudi may be more than you need. If it is full of updates, Hudi is built for it.
The idea: updates on files that were never meant to be updated
Parquet files are written once and read many times. They are not meant to be edited. But real tables have corrections, status changes and deletes. Hudi tracks each record by a key and takes care of applying updates and deletes to the files underneath, so you can treat the lake more like a database table.
Two table types: Copy on Write and Merge on Read
This is the choice that matters most in Hudi, and it is a trade between write cost and read cost.
- **Copy on Write (CoW).** Data is stored in columnar files such as Parquet. When records change, the affected files are rewritten as part of the write. Writes cost more, reads are simple and fast because only columnar files exist. Hudi documentation positions it for data that changes slowly, such as reference tables, and AWS describes it as a fit for read-heavy workloads.
- **Merge on Read (MoR).** Updates go into row-based log files next to the base files, and they are merged when you read. Writes are cheaper and faster, reads can cost more until compaction folds the logs into the base files. AWS describes MoR as a fit for write-heavy or change-heavy workloads with fewer reads.
Query types
- **Snapshot.** The latest state of the table.
- **Incremental.** Only the records that changed since a point in time. This is the "I" in Hudi, and it is useful for feeding downstream jobs without rereading everything.
- **Read-optimized (Merge on Read).** Reads only the base files. Faster, but it can leave out the freshest changes that are still in log files.
Where Hudi fits
Hudi is a good match for change-data-capture feeds and streaming ingestion, where many records are updated and downstream jobs want just the changes. It is a harder sell when you mostly append data. In data engineering communities you will also see teams asking whether to choose Hudi or Iceberg today, and many default to Iceberg or Delta Lake for general use. Treat that as a reason to compare on your own workload, not as a verdict.
Looking at Hudi files
A Hudi table folder holds base files (Parquet) and, for Merge on Read tables, log files. You can open a Parquet base file in the Parquet viewer in your browser to see its columns and rows. It shows that file only. It does not show the table state or the pending log records.
Related tool pages
- JSON, CSV, Parquet and Excel Converter: Convert between JSON, CSV, Parquet and Excel online for free, one file or a whole folder. It runs in your browser, so nothing is uploaded.
- Avro Viewer Online: Open .avro Files: Open and view an Avro (.avro) file online: see the schema and records as a table, then save as CSV, JSON, Excel or Parquet. Free, no upload.
- Avro to CSV Converter: Convert an Avro file to CSV online. Nested records are flattened. Free, private, runs in your browser.
- CSV to Avro Converter: Convert CSV to an Avro (.avro) file online. Column types are detected and written into the Avro schema. Free and private: nothing is uploaded.
- Avro to JSON Converter: Convert an Avro file to JSON online. Nested records, arrays and maps stay nested. Free, private, no upload.
- JSON to Avro Converter: Convert JSON to an Avro (.avro) file online. The schema is built from your data. Free, private, no upload.
Also try
How to use the Parquet Viewer: step by step
- Open a Parquet base file from the Hudi table in the Parquet viewer.
- Check its columns and rows.
- Remember that Merge on Read tables also hold changes in log files.
When to use the Parquet Viewer
- Understand upserts on a data lake
- Choose between Copy on Write and Merge on Read
- Learn where Hudi fits next to Iceberg and Delta
- Check the contents of a base file
Example
Input: data.parquet
Output: A table you can read, plus CSV or JSON
Frequently asked questions
What does Hudi stand for?
Hadoop Upserts Deletes and Incrementals. It is built for tables where records are updated and deleted often.
What is the difference between Copy on Write and Merge on Read?
Copy on Write rewrites the affected files on each write, so writes cost more and reads are simple. Merge on Read writes changes to log files and merges them when reading, so writes are cheaper and reads can cost more until compaction.
What is an incremental query in Hudi?
A query that returns only the records that changed since a given point in time, so downstream jobs do not have to reread the whole table.
Is Hudi better than Iceberg or Delta Lake?
It depends on the workload. Hudi is built for frequent record-level updates and incremental processing. For mostly append-only data, Iceberg or Delta Lake are often simpler. Test on your own data.
Can I open Hudi files in Data Utility?
You can open a Parquet base file in the Parquet viewer. The tool does not read Hudi table metadata or Merge on Read log files.
Tip: Start by asking how often records change and how often they are read. That decides Copy on Write or Merge on Read more than anything else.