Parquet stores each column separately, within horizontal row groups, and encodes and compresses each column chunk according to its type and value distribution; that combination—not “columnar” alone—is what enables selective reads, high compression, and efficient analytical scans.
The word columnar is often treated as if it meant “a file containing columns.” In Parquet, the important idea is narrower: a Parquet file is partitioned first into row groups, and each row group is then stored as a set of column chunks, one per column. Each column chunk contains pages, and each page holds encoded values plus metadata. A reader that needs three columns from a wide table can avoid reading the other columns’ pages entirely, provided it can skip whole row groups using statistics. The layout is therefore both column-oriented and block-oriented.
The physical hierarchy: file, row group, column chunk, page
A Parquet file begins with the magic bytes PAR1 and ends with a footer that contains the file metadata and a pointer to where that metadata begins; the same magic bytes close the file. Between the header and footer sit the data, organized by row group. The footer is written after the data, which is why a Parquet writer must know the complete schema and metadata before finalizing the file.
A row group is a horizontal slice of the table: a set of consecutive rows. Within a row group, values are stored column by column, not row by row. Each of those per-column, per-row-group units is a column chunk. A column chunk is the unit a reader can locate and skip using row-group statistics, and it is also the natural unit for compression and encoding decisions.
A column chunk is divided into pages. Pages are the smallest unit of encoding and compression, and they are what a reader actually decodes. Parquet has several page types, principally data pages (older format), data page v2, dictionary pages, and index pages. A dictionary page, when present, holds the distinct values for a column chunk so that data pages can store small integer references instead of repeated full values.
This hierarchy matters because “columnar” and “row-group skipping” are distinct mechanisms. Columnar storage lets a query avoid columns it does not need. Row-group statistics let it avoid rows it does not need—even within columns it does need. A file with one enormous row group wastes the second mechanism; a file with millions of tiny row groups pays metadata and seek overhead. Writers such as Apache Arrow’s Parquet implementation expose row-group size and page size settings precisely because these trade-offs are workload-dependent.
Why columnar layout helps: locality, encoding, and compression
In a row-oriented layout, the values of one column are interleaved with values from every other column. Reading a single column therefore touches many bytes that belong to other columns. In Parquet, all values of a column within a row group are contiguous, so a scan of that column reads a dense byte range.
Contiguity alone would be a modest gain. The larger gain comes from homogeneity: values in one column share a type and often a distribution. A column of timestamps has repeated patterns; a column of country codes has few distinct values; a column of sequential identifiers is nearly sorted; a column of prices clusters around typical magnitudes. Encoders can exploit these regularities in ways that are impossible when adjacent bytes belong to unrelated fields.
Compression then operates on the encoded bytes. Parquet permits compression codecs such as Snappy, gzip, Zstandard, LZ4, and Brotli, selected per column chunk. Because each column is compressed independently, a reader can decompress only the chunks it needs. This is a practical advantage over compressing an entire row-oriented file as one stream: whole-file compression forces decompression of irrelevant data before the needed bytes can be reached.
A concrete illustration: suppose an events table has columns user_id, event_type, timestamp, and a large payload JSON string. An analyst counts events by type for one day. A columnar reader touches event_type and timestamp, uses timestamp statistics to skip row groups outside the day, and never reads user_id or payload. In a row store, the same query typically reads full rows, dragging the payload bytes through memory even though they are discarded.
The advantage is not universal. If a query needs every column for a small number of rows—say, fetching one user’s full profile—a row store can be more efficient, because it reads one contiguous record rather than one fragment from each of many columns. Point lookups by primary key are also poorly served by plain Parquet unless the data is sorted or indexed in a way that enables skipping. Parquet is designed for scans, aggregations, and wide-table analytics, and its costs show up when those assumptions fail.
Encodings: making values smaller before compression
Parquet’s encoding layer is where much of the format’s efficiency lives. Encodings are chosen per column chunk, and sometimes per page, because the best choice depends on the data.
Dictionary encoding builds a dictionary of distinct values and stores indices into it. It excels when a column has low cardinality relative to its row count—status codes, country codes, product categories, repeated string labels. For a column with one million rows and fifty distinct values, storing fifty strings plus one million small integers is far cheaper than storing one million strings. Dictionary encoding is not free: building the dictionary costs memory and time, and a high-cardinality column (such as unique email addresses) can produce a dictionary nearly as large as the data, at which point the writer may fall back to plain encoding.
Run-length encoding (RLE) replaces repeated consecutive values with a value and a count. It is well suited to sorted or clustered data: a sorted column of timestamps at one-second resolution, or a column of region codes after sorting by region. It is ineffective on randomly ordered values, where runs are short.
Bit packing stores integers using the minimum number of bits needed for the maximum value in a page, so a column of small integers occupies less than a fixed-width representation would. Delta encoding stores differences between successive values, which suits sorted or slowly changing numeric and timestamp columns. Byte stream split separates the bytes of floating-point values so that similar exponents cluster together, improving subsequent compression.
Encoding choices interact with compression. Dictionary indices are small integers that compress well; RLE output is already compact and may leave little for a general codec to do. The writer’s heuristics usually try dictionary encoding first and fall back when the dictionary grows too large, but the exact policy varies by implementation and version. This is one reason two Parquet files with identical logical content can differ substantially in size.
Statistics, predicate pushdown, and skipping
Parquet’s footer stores metadata for each column chunk, commonly including minimum and maximum values, null counts, and distinct counts where available. These statistics are the basis for predicate pushdown: a query engine evaluates a filter against row-group statistics before reading data.
If a filter is timestamp >= '2026-11-01' and a row group’s maximum timestamp is October 31, the engine can skip that row group entirely. If the filter is on a column with no statistics, or statistics that are absent because the writer did not collect them, the engine must read the data. Statistics are most effective when data is sorted or clustered on the filtered column; random distribution makes min/max ranges overlap across row groups, so most groups cannot be excluded.
Newer Parquet features extend skipping. Page indexes store per-page statistics and allow skipping at page granularity within a column chunk, which helps when row groups are large. Bloom filters, where supported, allow membership tests for equality predicates on high-cardinality columns, avoiding reads when a value is definitely absent. These features are optional and depend on writer support and reader support; a file may simply not contain them.
A subtlety: min/max statistics are only trustworthy when the writer’s sort order and the reader’s comparison semantics agree. Parquet defines sort orders for types, including signed and unsigned integer orderings, and writers must record which applies. Strings and binary values have their own ordering rules. A reader that assumes the wrong order can make incorrect skipping decisions, which is why the format specifies these details rather than leaving them to convention.
Nested data and repetition/definition levels
Parquet supports nested schemas—structs, lists, and maps—not just flat tables. It represents nesting using repetition levels and definition levels, which encode, for each value, how many repeated fields are active and how many optional fields are defined along the path. This is the mechanism that lets a columnar format represent a document-like structure without storing an explicit tree per row.
Consider a orders column that is a list of structs, each with sku and quantity. Parquet stores sku and quantity as separate columns, and the repetition and definition levels reconstruct the list boundaries and nullability. A null list, an empty list, and a list containing a null element are distinguishable because the levels differ. This design preserves the columnar benefit for nested fields: a query that needs only sku reads only the sku leaf column.
The cost is conceptual and computational complexity. Reconstructing nested records requires assembling leaves according to their levels, which is more work than reading a flat column. Writers must also choose how to handle large nested values, and readers must respect the schema’s optionality. The Dremel paper, which described Google’s columnar nested-data representation, is the standard reference for the record-shredding idea that Parquet’s levels implement; Parquet’s specific encoding details are defined by its own format specification.
Writing and reading: what actually happens
A typical writer buffers rows into memory, accumulates them into a row group, and flushes column chunks when the row group reaches a target size or row count. For each column chunk, it chooses encodings, writes pages, compresses them, and records metadata. At the end, it writes the footer with the schema, row-group and column-chunk metadata, statistics, and offsets. Because the footer is at the end, a reader must seek to it; Parquet is not a streaming format in the sense that a reader can begin decoding from the first byte without metadata.
A reader first parses the footer, reconstructs the schema, and identifies the row groups and column chunks relevant to the query. It then reads the selected column chunks, decompresses and decodes pages, applies filters, and assembles rows for the query engine. Engines such as Apache Spark, Apache Hive, Trino, DuckDB, and Apache Arrow’s dataset readers implement this pipeline with different degrees of pushdown; the format enables skipping, but the engine decides how aggressively to use it.
This division of responsibility explains a common confusion. Users sometimes expect Parquet alone to make a query fast, then find that a filter does not skip anything. Often the cause is that the filter column lacks statistics, the data is unsorted so ranges overlap, the engine does not push the predicate down, or the row groups are too large for effective skipping. The format provides the machinery; the writer’s layout and the reader’s capabilities determine the outcome.
Ambiguities and common misconceptions
“Columnar” does not mean one file per column. A Parquet file contains all columns; it organizes them into chunks. Systems that store one file per column (such as some Hadoop-era layouts) are a different design with different trade-offs.
Parquet is not a database. It is a file format. It has no transaction log, no update-in-place semantics, and no built-in concurrency control. Table formats such as Apache Iceberg, Delta Lake, and Apache Hudi layer those capabilities on top of Parquet files.
Columnar does not guarantee small files. Poor encoding choices, high-cardinality dictionary attempts, tiny row groups, or already-compressed payloads can produce files larger than expected. Conversely, a well-sorted dataset with dictionary-friendly columns can compress dramatically.
The reference date does not settle version details. The Parquet format has evolved—data page v2, page indexes, and various encodings were added over time—and implementation behavior differs. Questions about whether a specific writer emits bloom filters, which codecs are enabled by default, or how a particular engine handles statistics require checking the relevant documentation and versions, which this answer cannot verify without current sources.
Sort order and statistics are not the same as an index. Min/max statistics describe ranges; they do not locate individual rows. A point lookup on an unsorted column may still scan every row group.
A compact comparison
| Aspect | Row-oriented store | Parquet |
|---|---|---|
| Unit of contiguity | Full row | Column chunk within a row group |
| Reading few columns from many rows | Reads unused columns | Reads only needed chunks |
| Reading one full row | Efficient | Fragmented across columns |
| Compression | Whole-row or block codecs | Per-column-chunk codecs plus encodings |
| Skipping | Depends on indexes | Row-group and page statistics, bloom filters where present |
| Updates | Natural in transactional systems | Requires rewrite or table-format layer |
The table is a summary of tendencies, not a universal ranking; a row store with a covering index can beat Parquet for narrow point queries, and a poorly laid-out Parquet file can lose its advantages entirely.
What the format actually guarantees
Parquet guarantees a defined binary layout, a schema representation, encoding rules, and metadata structures that conforming readers can interpret. It does not guarantee that any particular query will be fast, that statistics exist, that a codec is available, or that a writer will choose optimal encodings. Performance emerges from the interaction of file layout, data distribution, writer settings, and reader capabilities.
The practical upshot: Parquet’s columnar storage works by separating columns into independently encoded, compressed chunks inside row groups, then using metadata and statistics to let readers touch as little data as possible. Understanding that hierarchy—and where it stops helping—is more useful than treating “columnar” as a synonym for “fast.”