Skip to main content

Module overview

@loaders.gl/tables/parquet

Use Parquet when column selection, metadata pruning, and Arrow-compatible results matter more than reading the whole file.

ArrowParquetselective reads
Parquet scan example
Parquet scan parametersDiscovering schema…
Reading source metadata before opening the data…

From-v3.1Scan supported

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.

PAR1
row group 0read
idstatusgeometry
row group 1skip
idstatusgeometry
row group 2read
idstatusgeometry
01Inspectfooter and schema
02Requestselected ranges
03Arrow batchestyped columns, ready to use ↗

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.

  • ParquetLoader uses the TypeScript reader and compress-utils codecs. ParquetWriter uses the native TypeScript encoder. Use parquet.shape: 'object-row-table' when row objects are required.
  • ParquetLoader provides reusable, selective Arrow reads with cached schema and footer metadata. From-v5.0
  • ParquetDatasetSource coordinates catalog-backed, multi-file Parquet reads with file pruning and bounded concurrency. From-v5.0
  • The live benchmarks compare the published loader with alternate ParquetJS and WASM readers. ParquetWriter provides the TypeScript writer.
  • ParquetLoader returns an Arrow table by default and ParquetWriter accepts 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/query is 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.geo is 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​

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.