Store data column by column in files, so analytics read less and compress better.
Parquet is a file format that stores a table column by column instead of row by row. A query that needs 2 of 50 columns reads only those 2, and the footer's min/max statistics let it skip whole chunks of rows without opening them.
A row-based file (CSV, JSON, Avro) writes row 1 fully, then row 2, and so on. That is perfect for "give me the whole record for user 42". But analytics asks questions like "the average amount by country over a billion rows". That needs two columns out of dozens. With a row file, the reader still has to go past every other column in every row.
A columnar file writes all values of column 1 together, then all of column 2, and so on. Now the average-by-country query reads two blocks and ignores the rest. This general idea is covered in the Columnar Databases page. This page is about the file layout that makes it work on a lake.
A Parquet file is not one long column, though. It is cut into row groups (typically a few hundred thousand to millions of rows each). Inside each row group, every column is stored as a column chunk, cut into pages. At the very end is a footer with the schema, where each chunk lives and statistics such as the min and max of each chunk.
| Trick | What it does | Best for |
|---|---|---|
| Column pruning | Reads only the chunks of the needed columns | Wide tables, narrow queries |
| Row-group skipping | Uses min/max to skip groups that cannot match a filter | Filters on sorted or clustered columns |
| Dictionary encoding | Stores each distinct value once, then small numbers | Columns with few distinct values (country, status) |
| Run-length encoding | Stores “DE × 400” instead of 400 copies | Sorted or repeating values |
| Delta encoding | Stores the differences between neighbouring numbers | Timestamps and IDs that grow |
| Compression (Snappy, Zstd, Gzip) | Squeezes each page after encoding | Everything. Snappy is fast, Zstd compresses more |
| Format | Layout | Good at | Weak at |
|---|---|---|---|
| Parquet | Columnar | Analytics, scans over a few columns | Single-row lookups and frequent small writes |
| ORC | Columnar | Hive and Hadoop analytics, with built-in indexes | Less support outside the Hadoop world |
| Avro | Row-based | Streaming records, schema evolution, Kafka | Column scans |
| CSV / JSON | Row-based text | Human readable, easy to start | Large, slow, no types or stats |
| id 8 B each | country 4 B each | plan 4 B each | amount 8 B each | day 4 B each | |
|---|---|---|---|---|---|
Rows 1–4 (stored row after row) | |||||
| row 1 | 1 | DE | free | 12 | Mon |
| row 2 | 2 | DE | free | 8 | Mon |
| row 3 | 3 | FR | pro | 20 | Tue |
| row 4 | 4 | DE | free | 15 | Tue |
Rows 5–8 (stored row after row) | |||||
| row 5 | 5 | US | pro | 95 | Wed |
| row 6 | 6 | US | team | 120 | Wed |
| row 7 | 7 | FR | team | 80 | Thu |
| row 8 | 8 | US | pro | 150 | Thu |
A toy table with made-up byte sizes, just to show the idea. Real Parquet also compresses and encodes each column chunk, so real savings are usually larger. Row groups hold millions of rows in practice, not four.
sales/year=2026/month=01/part-0001.parquet. Filtering on year and month means whole folders are never listed or read.| Term | Meaning in easy words |
|---|---|
| Parquet | An open columnar file format for analytics data |
| Row group | A horizontal slice of rows inside the file, holding all columns for those rows |
| Column chunk | All the values of one column within one row group |
| Page | The small unit inside a chunk that is encoded and compressed |
| Footer | Metadata at the end of the file: schema, offsets, statistics |
| Statistics | Min, max and null counts for each chunk |
| Column pruning | Reading only the columns a query needs |
| Predicate pushdown | Applying filters at the file level, using statistics, to skip data |
| Dictionary encoding | Replacing repeated values with short codes |
| Run-length encoding | Storing a value once with a repeat count |
| Partitioning | Splitting data into folders by a column value |
| Small files problem | Many tiny files cause slow listing and low read efficiency |
| Table format | A layer (Delta, Iceberg, Hudi) that tracks Parquet files to add transactions |
| Choice | We gain | We lose |
|---|---|---|
| Bigger row groups | Better compression and fewer chunks | More memory to write, coarser skipping |
| Smaller row groups | Finer skipping | More metadata, worse compression |
| Zstd instead of Snappy | Smaller files | More CPU to write and read |
| Sorted data | Tight min/max, more skipped | Extra sort work on write |
| Fine partitions | Skip more folders | More files and the small files problem |