How it works · 22 of 38 Advanced
What are columnar storage and open table formats like Parquet and Iceberg?
Read only what you ask for
Columnar & table formats: A row format stores each record's fields together, so a report on two columns must read all of them; a columnar format such as Apache Parquet stores each column together, with min–max tags on every block, so a query reads only the columns it needs and skips blocks that can't match; open table formats such as Apache Iceberg do the same one level up, skipping whole files.
Loading the animation…
Say it like this A columnar file stores each column together, so a report reads only the columns it needs and skips blocks whose min–max tags rule them out; formats like Parquet and Iceberg make analytics fast and cheap, while apps that fetch whole records keep rows.
Under the hood — for builders
- Real test: the same table, text vs Parquet
- AWS stored one dataset as text files and as Snappy-compressed Parquet, then ran the same Athena query:
- Why: read only what you need
- Athena charges by data scanned. Columns stored together let it read only the columns a query asks for.
- Row vs columnar
- Row (CSV, a database): each record's fields together. Columnar (Parquet, ORC): each column's values together.
- Typical sizes (Parquet docs)
- "We recommend large row groups (512MB - 1GB)" and "8KB for page sizes".
- Min–max statistics
- Each page keeps its lowest and highest value, so a reader skips pages that can't match.
- Open table formats
- Iceberg, Delta Lake and Hudi track which Parquet files make up a table, and partition it.
- Watch out
- Columns lose for fetching one whole record. Many tiny files undo the gains: compact them.
- Sources
- AWS Big Data Blog, "Analyzing Data in S3 using Amazon Athena" · Apache Parquet docs, "Configurations" (read November 2026).
What happens in the columnar & table formats animation, step by step?
- A text (CSV) file stores a table row by row, like a paper tape: all 40 fields of loan 1, then all 40 of loan 2, and so on for millions of loans.
- A report wants the average loan amount per branch: two columns of 40. On a tape, the reader must still pass every field. In an AWS test, one query on a 1 TB text table read 1.15 TB, took 236 seconds and cost $5.75 in Amazon Athena.
- Apache Parquet turns the table on its side: every amount together, every branch together, one drawer per column. Values of one kind squeeze well; in the same test, 1 TB became 130 GB.
- Your turn: tap the drawers this report needs, amount and branch, and only those are read. Reading two columns, the same query read 2.51 GB in 6.78 seconds, for about a cent.
- Each block of a column carries a tag with its smallest and largest value. Ask for loans over ₹50 lakh and every block whose largest is lower is skipped unopened. Apache Iceberg does the same a level up, skipping whole files of months you didn't ask for.
- The catch: to show one whole loan, all 40 drawers must be opened; a row store finds it in one place. So the loan app keeps rows and analytics copies to columns. And a fast read of a wrong number is still wrong. Next: data quality.
What everyday example explains columnar & table formats?
A ledger and a chest of drawers. The ledger writes each customer's whole line, so totting up one figure means reading every line. The chest keeps one drawer per kind of paper, each bundle in a drawer labelled "smallest to largest", so you open two drawers and skip every bundle whose label rules it out. Finding one customer's every paper, though, means opening all the drawers.
Why should a team care about columnar & table formats?
Store analytics data (reports, dashboards, ML features) as Parquet in an open table format, sorted or partitioned by the filter people use most, and compacted into large files; keep the app's own database in rows, because it fetches and updates whole records.