Developer tools

Parquet File Viewer

Open a .parquet file to read its schema, row-group metadata and column statistics, then scroll the rows and export the columns you pick. Only the footer and the chunks you ask for are read from disk.

Parquet file

Reads slices of the file, so multi-gigabyte files do not load whole

Drop a Parquet file or click to choose

Snappy, gzip, zstd, brotli and LZ4 compression

Parquet File Viewer

Operator: Abdulla Al Fahad. How tools are built and checked

Most questions about a Parquet file (what columns, what types, how many rows, which codec) are answered by its footer, not by its rows, yet the usual way to ask them is to start a notebook or a Spark session. This viewer reads the footer directly: the schema tree, every row group and the per-column statistics, and it only fetches column chunks when you scroll to rows or export.

The file is sliced from disk rather than loaded whole, so the file's size mostly matters when you ask for rows. Rows load in pages of 200 as you scroll, and you can filter or sort the rows that are already loaded. Exports write CSV, JSON or JSON Lines for the columns you tick. Load example opens a small invented sensor file with two row groups, one plain and one gzip-compressed.

Key features

  • Schema tree with nested groups indented, plus repetition, physical type and logical type such as DATE, DECIMAL(p, s) or TIMESTAMP in micros
  • Row-group table with first row, row count and compressed and uncompressed sizes
  • Column-chunk details: codec, encodings, value counts, null counts, min and max
  • Virtual scrolling over all rows, with a column picker that also decides what is exported

What the Parquet footer tells you before any row is read

The file must begin and end with the four bytes PAR1, and the four bytes before the closing marker give the footer length. A footer over 64 MB is refused, and a file whose footer says PARE is encrypted and cannot be read here. Compression is handled by hyparquet 1.32 with its companion decompressors: snappy, gzip, zstd, brotli, LZ4 and LZ4_RAW. LZO is not supported.

Nested columns such as location.city and location.zip are read as one value of the top-level column, so the picker lists location once. The min, max and null counts in the chunk table are the values the writing program stored; they are not recomputed, and a writer that skipped statistics shows n/a.

How it works

Reads go through File.slice, so only the byte ranges of the selected columns in the needed row groups are loaded. When the offset index is present, only the pages covering the requested rows are used.

Before rows are decoded, the page headers of the selected column chunks are scanned. A page that claims more values than its column chunk reports, or a read that adds up to more than 64 million values, is refused. Every decompressor is also wrapped so that a page claiming more than 256 MB after decompression, or a read passing 768 MB in total, stops with a message instead of allocating, and a ZSTD page is decompressed into a buffer of exactly the declared size. Selecting fewer columns lowers all of these numbers.

Scrolling maps the scrollbar position to a row number. Beyond about 266,000 rows the scroll height is capped at 8 million pixels, so one scrollbar step moves several rows, but the row numbers shown stay exact.

When this helps

  • A data engineer checks last night's export before a dashboard breaks. The row-group table shows the file holds 41 million rows where the source table has 43 million, and the null count on the order_total column explains the gap.
  • An analyst gets a 1.8 GB file and needs three columns. Unticking the other columns keeps the read small, and the CSV is written one row group at a time.
  • A developer wonders why two exports of the same table differ in size by a factor of three. The column-chunk table shows one writer used snappy and dictionary encoding on the id columns and the other wrote them plain and uncompressed.
  • A platform team opens a file from a vendor to learn whether created_by names Spark, Arrow or something else, and reads the key-value metadata for the embedded schema.

Opening a file

  1. Drop a .parquet file, or choose Load example, then read the Schema tab and the Row groups tab to compare codecs and statistics across groups.
  2. On the Rows tab untick the columns you do not need and scroll, or type a filter once rows are loaded.
  3. Open Export and choose CSV, JSON or JSON Lines, which covers the columns you left ticked.

Example

Export of the example file on the Export tab: columns reading_id, site, temperature_c and location, format JSON Lines

sensor-readings-example.parquet: 100 rows, 8 leaf columns, row group 0 plain (60 rows), row group 1 gzip (40 rows)

First line of the downloaded file

{"reading_id":1000000,"site":"S-00","temperature_c":8,"location":{"city":"Oslo","zip":null}}

Limits

A dataset written as a folder of part files is many Parquet files; open one part at a time.

Integers beyond 2^53 are written as strings in JSON and CSV so no digit is lost.

BYTE_ARRAY columns without a string annotation are shown as hex, and large arrays are cut at 5,000 values per cell.

An export stops at 5,000,000 rows or about 700 million characters and says so.

  • Sort and filter work only on rows already loaded. Use Load up to 50,000 rows first if you want them to cover more of the file.
  • Min and max are kept per row group. If two groups show overlapping ranges for a column, a query filtering on that column cannot skip either of them.

Common errors and how to fix them

This is not a Parquet file: the last four bytes are not PAR1
The file is cut off, or it is a different format. If it came from a download, compare its size with the source.
A data page declares 400000000 bytes after decompression, more than the 256 MB limit
The page header claims more than 256 MB. The file is damaged, or it was built to exhaust memory.
This page's header or data is damaged or not valid Parquet, so these rows cannot be read
A page header could not be decoded or the page body is inconsistent. A small line under the message shows what the decoder reported. The footer and the other columns may still open, so untick the affected column and try again, and re-export the file if it came from a transfer.
A data page declares 900000 values, more than the 100 its column chunk reports
A page header disagrees with the footer about how many values the column chunk holds. One of them is wrong, so the file is damaged or was written by a faulty tool; the page is not decoded.
Reading these rows would decompress about 900 MB, over the 768 MB limit
The columns selected hold more than 768 MB when decompressed. Untick wide columns and try again.

Best practices

  • Export the narrowest set of columns that answers the question; the CSV size follows the column count directly.
  • Treat the schema tab as the contract when comparing two files, because a changed repetition from required to optional changes how consumers read nulls.

Frequently asked questions

Why do dates show as 2024-04-01 in one column and a full timestamp in another?

A column annotated as DATE holds whole days and is written as a date. A TIMESTAMP column keeps its time of day and is written as an ISO string ending in Z.

Does the Avro File Viewer work the same way for Avro?

The Avro File Viewer reads Avro container files, which store a schema in the header and rows in blocks. Parquet is columnar and keeps its metadata in the footer, so the two are opened differently.

Can I edit the file?

No. The viewer only reads and exports. Rewrite the data with the tool that produced it.