@loaders.gl/tables/parquet
Use Parquet when column selection, metadata pruning, and Arrow-compatible results matter more than reading the whole file.
The Parquet layout
Read the footer. Fetch the useful ranges.
A Parquet file keeps its directory at the end. A reader can inspect that small suffix, choose columns and row groups, and decode only the ranges that survive planning.
The exact pruning layers depend on the source and indexes, but the application receives the same Arrow-shaped result.
The Parquet module
Read the columns that matter.
The module spans the simple loader path and the selective cloud path: use rows for convenience, Arrow for typed transport, and sources when metadata can eliminate work before decoding.
Load
Decode Parquet into rows or Arrow-compatible tables
Select
Prune files, row groups, columns, pages, and predicates
Stream
Process batches without materializing the complete dataset
Compose
Use GeoParquet, Iceberg, Delta, and scan-aware sources
Experimental loader and writer for the Apache Parquet format.
ParquetLoaderuses the TypeScript reader and compress-utils codecs.ParquetWriteruses the native TypeScript encoder. Useparquet.shape: 'object-row-table'when row objects are required.ParquetLoaderprovides reusable, selective Arrow reads with cached schema and footer metadata.ParquetDatasetSourcecoordinates catalog-backed, multi-file Parquet reads with file pruning and bounded concurrency.- The live benchmarks compare the published loader with alternate ParquetJS and WASM readers.
ParquetWriterprovides the TypeScript writer. ParquetLoaderreturns an Arrow table by default andParquetWriteraccepts loaders.gl Arrow tables.- Iceberg, Delta Lake, and Hudi table-format sources are available from
@loaders.gl/tables/iceberg,@loaders.gl/tables/delta, and@loaders.gl/tables/hudi. They use Parquet for physical file reads and the shared scan contracts from core; installing@loaders.gl/core/queryis unnecessary to use them.
The read-only Hudi Copy-on-Write proof of concept is available from
@loaders.gl/tables/hudi. It consumes a JSON snapshot descriptor listing
Parquet base files. Merge-on-Read logs, incremental timeline queries, deletes, and compaction are
not supported.
Detailed guide
Parquet APIs and dataset integrations
The reference below covers loaders, writers, Arrow output, geospatial metadata, selective sources, Iceberg, Delta, and implementation boundaries.
Geospatial Metadata
GeoParquet and GeoArrow metadata are handled as two parallel layers:
- GeoParquet
schema.metadata.geois preserved as schema/file metadata - GeoArrow field metadata is added to geometry columns when it can be derived safely
On read, geometry columns are passed through unchanged while loaders.gl maps supported GeoParquet geometry encodings onto field-level GeoArrow metadata.
On write, GeoArrow field metadata can be used to synthesize missing or invalid GeoParquet geo
metadata before Parquet encoding.
Attribution
- Based on a fork of https://github.com/ironSource/parquetjs and https://github.com/kbajalc/parquets under MIT license (Copyright (c) 2017 ironSource Ltd.).
- Delta decoder improvements include adaptations from https://github.com/hyparam/hyparquet under the MIT license (Copyright (c) Hyperparam contributors).
- Documentation was inspired by parquet-go under Apache 2 license.
License
The retained parquetjs/parquets implementation and hyparquet adaptations use MIT terms. The optional parquet-wasm backend and its dependencies retain their own licenses. See the tables package notice inventory.
LZO decompression is supported through compress-utils 0.10.1. Parquet Hadoop block framing is handled in TypeScript. LZO compression is not supported.
The TypeScript reader supports parquet.rowGroups, projection, offset, limit, batching, and cancellation. parquet.concurrency remains accepted for compatibility; the TypeScript loader reads row groups sequentially.
For paging through a single Parquet file, reuse the source and pass offset and
limit to the common table query API or ParquetSource.read(). For reads without
row predicates or bounding boxes, the source uses footer row counts to avoid
scheduling reads for row groups outside the requested page. Adjacent pages may
decode the same boundary row group. With row predicates, the offset counts rows
that pass the predicate.
