Introduction
Apache Parquet is a file format for large tables that stores data by column rather than by row. Twitter and Cloudera created it in 2013 for the Hadoop ecosystem, and it is now the usual format for data lakes and analytics tools.
Keeping each column together means a query that needs a few columns reads only those, and values of one type side by side compress well. Each file carries its own schema and statistics, such as the minimum and maximum of each column, so readers can skip parts that cannot match a query.
Structure
A Parquet file starts and ends with the four bytes PAR1. Between them the
rows are split into row groups. Within a row group each column is
stored as a column chunk, made of pages of encoded and usually
compressed values (with Snappy, Gzip, Zstandard or others).
The footer at the end holds the file metadata: the schema, the row
groups, where each column chunk starts and its statistics. It is encoded with Apache
Thrift’s compact protocol. A reader starts at the end: the last eight bytes are the
footer’s length, as a 32-bit little-endian number, and PAR1.
0MagicPAR14 bytes4Row groups a column chunk of pages for each columnrepeated…Footer schema, row group and column metadatavaries…Footer length andPAR18 bytes
The file metadata and schema and pages and encodings pages give every structure and code.
Not described
Re-checked on 2026-11-13 against parquet.thrift, the README, Encodings.md, Encryption.md, PageIndex.md, BloomFilter.md and Compression.md of the parquet-format repository. These parts of the same repository are not on the pages yet.
Known, not yet covered
- Reference: LogicalTypes.md, the full rules of each logical type (nested LIST and MAP forms, TIME and TIMESTAMP details, DECIMAL storage choices); the metadata page lists the types and their parameters and the allowed physical types only.
- Reference: Geospatial.md (geospatial type codes, edge interpolation, bounding box rules), the Variant encoding documents, and the FILE and FINITE_VECTOR details in LogicalTypes.md.
- Reference: AlpEncoding.md, the ALP encoding (marked Preview in Encodings.md as of 2026-08-01).
- Reference: BinaryProtocolExtensions.md, the use of Thrift field 32767.
- Reference: the Compression.md codecs are named and linked to their own specifications, which are not reproduced (Snappy, LZO).
Links
Software
- DuckDB – analytical database that queries Parquet files directly with SQL (Windows, macOS, Linux)
- Apache Spark – distributed data processing engine that reads and writes Parquet
- Tableau – data visualisation software that connects to Parquet files (Windows, macOS)
Developers
- PyArrow – Parquet reading and writing, part of Apache Arrow (Python)
- pandas – data frames with
read_parquetandto_parquet(Python) - parquet-java – the reference implementation (Java)
- arrow-rs – Arrow and Parquet crates (Rust)
Reference
- File Format – the Apache Parquet documentation of the layout
- parquet-format – the specification and Thrift definitions