The Parquet Writer Defaults Matrix: Row Group and Page Size Defaults by Writer After the HDFS-Era Advice Was Retired

Parquet's docs no longer prescribe one size. On Nov 24, 2026 the 8KB page-size advice was removed.

14 Mins readAlex Merced
The Parquet Writer Defaults Matrix: Row Group and Page Size Defaults by Writer After the HDFS-Era Advice Was Retired

Parquet’s docs no longer prescribe one size. On Nov 24, 2026 the 8KB page-size advice was removed. A Nov 23 proposal replaces the 512MB to 1GB row-group rule with four trade-offs: pruning, parallelism, writer memory and footer size. Writers already disagree: parquet-java defaults to 128MB row groups, while Arrow C++ and arrow-rs default to 1Mi rows.

That last sentence is the reason this page exists. Ask five engineers what row group size their lakehouse writes and you get five answers. Each one is right for the library that wrote the file. The same table, written by Spark on Monday and by a Python service on Tuesday, holds files with very different internal layouts. Query performance then differs in ways that are hard to trace back.

The fixed recommendations in the official docs used to hide this. They gave everyone one number to point at. With those numbers retired, the useful reference becomes what each writer actually does by default, and what each default trades away. That’s what this matrix records. Every cell links back to code or documentation, and the version at the top tells you when it was checked.

What Changed in the Parquet Docs

Two changes landed within a week, both from Alkis Evlogimenos.

The first was about pages. The Parquet configuration guide used to say “We recommend 8KB for page sizes.” PR #223 on the parquet-site repository, titled “Replace 8KB data page size recommendation with tradeoff guidance,” replaced that line. Andrew Lamb merged it on November 24, 2026. The new text treats page size as a trade-off. Smaller pages help point lookups because a reader decodes less data to reach one value. Larger pages cut metadata overhead and generally compress better. The guidance now tells you to start from your writer’s default and benchmark your own workload.

The second is about row groups. On November 23, 2026, Alkis opened a discussion on the Parquet dev list titled “Update row group size recommendation.” The current guide recommends “512MB to 1GB row groups,” aligned with Hadoop Distributed File System (HDFS) blocks. His argument is that most Parquet data now lives in object storage, which has no blocks. The proposed replacement lists four trade-offs instead of a number and says plainly that no single size fits all workloads. He plans a PR in the same style as the page size change.

Neither change alters the format. Files written yesterday read the same way today. What changed is the official advice, and with it the excuse to stop looking at your actual files.

Why the HDFS Rationale Stopped Holding

The 512MB to 1GB guidance made sense in its time. HDFS split files into large blocks, often 128 MB or 256 MB, and MapReduce or Spark scheduled one task per block. If a row group spanned two blocks, a reader had to fetch data from another node. Aligning row groups with blocks kept reads local and gave each task one clean unit of work.

Object storage changed every part of that. Amazon S3, Azure Data Lake Storage, and Google Cloud Storage have no block layout that readers see. A reader fetches byte ranges over HTTP. Data locality doesn’t exist, because compute and storage are separate. Engines split work by row group or by byte range, not by storage block.

What remains are costs that have nothing to do with blocks. Each HTTP request has latency. Each row group adds entries to the footer. Each buffered row group costs writer memory. The new guidance names these costs directly, which is better advice than a number tied to a storage system most people no longer run.

The Four Trade-offs

Here is how each force pushes on row group size, in plain terms.

Pruning. Every row group stores min and max statistics for each column. A reader with a filter like WHERE event_date = '2026-11-30' checks those statistics and skips row groups that can’t match. Smaller row groups mean tighter min and max ranges, so more skipping. This matters most when the file has no page index. With a page index, the reader prunes at page level inside a row group, and row group size matters less for pruning.

Parallelism. Many engines assign one unit of work per row group. A 1 GB file with one row group gives one task. The same file with eight row groups gives eight. Larger row groups mean fewer, bigger tasks. That’s fine when you have many files and poor when a query touches a few large files.

Writer memory. A writer buffers a full row group in memory, across every column, before it flushes. A 512 MB row group on a wide table means holding 512 MB of encoded data per open file. A writer with many open files, such as a partitioned streaming sink, multiplies that by the number of partitions it writes at once.

Footer size. The footer holds one metadata entry per column chunk, and there’s one column chunk per column per row group. A table with 2,000 columns and 100 row groups has 200,000 column chunk entries. Every reader must parse that footer before reading data. Many small row groups on wide schemas make footers large and slow.

These forces pull in opposite directions. Pruning and parallelism favor smaller row groups. Memory and footer size favor larger ones. Any default is a position on that tension, and each library picked a different spot.

The Matrix

This is the core asset. Each row is a writer as of the version noted. Values are defaults when you set nothing.

Writer (version checked)Row group defaultRow group unitData page sizePage row limitDictionary page limitPage index by defaultDefault compression
parquet-java (master README)128 MB (parquet.block.size)Bytes1 MB20,000 rows1 MBYes (column and offset index)Uncompressed
Iceberg Java writer (docs 1.12.0)128 MB (write.parquet.row-group-size-bytes)Bytes1 MB20,000 rows2 MBInherits parquet-javazstd
Arrow C++ via PyArrow (write_table)1,048,576 rows (capped at 64Mi)Rows1 MB20,000 rows1 MBNo (write_page_index=False)Snappy
arrow-rs parquet crate (60.2.0)1,048,576 rows, no byte cap by defaultRows1 MB20,000 rows1 MBYes (page-level statistics, offset index on)Uncompressed
DuckDB (docs 2.0, COPY TO)122,880 rowsRowsNot documented as a single defaultNot documentedROW_GROUP_SIZE / 5 entriesNot documentedSnappy

Sources: the parquet-java hadoop README, the Iceberg configuration docs, the PyArrow write_table reference, the arrow-rs writer properties source, and the DuckDB COPY reference.

A few cells need a note.

The Iceberg row is the Java writer Iceberg uses in Spark, Flink, and other JVM engines. Its row group default matches parquet-java’s 128 MB. Its dictionary limit is 2 MB rather than 1 MB, and it compresses with zstd by default. Iceberg also has a separate target file size, write.target-file-size-bytes, which defaults to 512 MB. So a default Iceberg data file holds about four row groups.

The PyArrow row is the most common Python path. The row_group_size parameter defaults to None, which means the smaller of the table’s row count and 1,048,576 rows. Values above 64Mi rows are capped. PyArrow’s write_page_index defaults to False, so files written by default PyArrow carry no page index.

The arrow-rs row reflects DEFAULT_MAX_ROW_GROUP_ROW_COUNT of 1,048,576 rows. The builder also has a max_row_group_bytes setting that defaults to None, meaning no byte limit. Its default statistics level is page, so it writes column index statistics and offset indexes by default.

DuckDB uses 122,880 rows, which matches its internal vector and row group sizing. Its ROW_GROUP_SIZE_BYTES option only applies when insertion order preservation is turned off.

Bytes vs Rows: Why the Defaults Don’t Compare Directly

The table hides a problem in the “unit” column. Two of the writers size row groups in bytes. Three size them in rows. Those are different quantities, and the conversion depends on your data.

Take a narrow table with five integer columns. One row encodes to maybe 20 bytes before compression. A 1,048,576-row group is then around 20 MB. That’s about one sixth of parquet-java’s 128 MB default.

Now take a wide table with 300 columns, many of them strings. One row encodes to several kilobytes. The same 1,048,576-row group can reach multiple gigabytes in memory. That’s far past parquet-java’s default and well past what a writer can comfortably buffer.

So “PyArrow writes smaller row groups than Spark” is true for narrow tables and false for wide ones. Row-count defaults give consistent row counts and wildly varying byte sizes. Byte defaults give consistent sizes and varying row counts. Neither is wrong. Comparing them directly is.

This also explains a common surprise. Someone writes a wide table from Python with defaults, then sees writer memory spike. The row-count default didn’t account for row width. Setting row_group_size explicitly, or using a writer with a byte limit, fixes it.

The Page Defaults Agree More Than You’d Expect

Page settings show much more agreement. Every writer that documents it targets about 1 MB data pages, and every one of those also caps pages at 20,000 rows.

The row cap matters more than it looks. Without it, a column of small values such as booleans or small integers can pack millions of values into one 1 MB page. A point lookup then decodes the whole page to find one value. The 20,000-row limit bounds that cost and keeps page index entries useful for skipping.

The 8KB advice that was removed sat far from every writer’s real default. It came from a period when pages lined up with disk pages for random access. Modern writers settled near 1 MB because object storage reads favor larger sequential ranges and because page headers and index entries cost space. The removed line described almost nobody’s actual files.

The useful page-level question now is whether the file has a page index at all. That’s where the writers differ, and that’s what decides whether page size affects your query performance.

Mapping the Trade-offs to Iceberg Table Properties

If you write Parquet through Iceberg, you control most of this with table properties instead of writer code. That’s good, because the settings stay with the table rather than with whichever job happens to write it.

Here’s a Spark SQL example that sets explicit values on a wide, filter-heavy table:

ALTER TABLE lake.analytics.events SET TBLPROPERTIES (
  'write.parquet.row-group-size-bytes' = '67108864',   -- 64 MB row groups
  'write.parquet.page-size-bytes'      = '1048576',    -- 1 MB pages
  'write.parquet.page-row-limit'       = '20000',      -- cap rows per page
  'write.parquet.dict-size-bytes'      = '2097152',    -- 2 MB dictionary limit
  'write.target-file-size-bytes'       = '536870912',  -- 512 MB files
  'write.parquet.compression-codec'    = 'zstd'
);

Each line maps to one trade-off.

write.parquet.row-group-size-bytes drops from 128 MB to 64 MB. On a wide table, that halves writer memory per open file and doubles the number of row groups a reader can prune or parallelize. The cost is a bigger footer. Measure the footer before and after.

write.parquet.page-size-bytes and write.parquet.page-row-limit keep the defaults, written explicitly. That way a future default change in the library doesn’t silently change your files.

write.parquet.dict-size-bytes controls when a column falls back from dictionary encoding to plain encoding. High-cardinality string columns hit the limit and fall back. Raising it helps only if the dictionary still compresses well at the larger size.

write.target-file-size-bytes controls how many row groups land in each file. With 64 MB row groups and 512 MB files, you get roughly eight row groups per file.

New writes pick up these properties. Existing files keep their old layout until compaction rewrites them.

Inspecting Your Own Files

The best part of the new guidance is the instruction to benchmark your own workload. You can’t do that without seeing what your files actually contain. This PyArrow script prints the row group layout of one file:

import pyarrow.parquet as pq

def describe(path: str) -> None:
    f = pq.ParquetFile(path)
    md = f.metadata
    print(f"file: {path}")
    print(f"created_by: {md.created_by}")
    print(f"rows: {md.num_rows}  row_groups: {md.num_row_groups}  columns: {md.num_columns}")
    print(f"footer bytes (serialized): {md.serialized_size}")
    for i in range(md.num_row_groups):
        rg = md.row_group(i)
        compressed = sum(rg.column(j).total_compressed_size for j in range(rg.num_columns))
        print(f"  rg {i}: rows={rg.num_rows} "
              f"uncompressed={rg.total_byte_size / 2**20:.1f} MiB "
              f"compressed={compressed / 2**20:.1f} MiB")
    col = md.row_group(0).column(0)
    print(f"page index present: {col.has_column_index and col.has_offset_index}")

describe("part-00000.parquet")

The created_by field tells you which library wrote the file, which maps directly to a row in the matrix. serialized_size gives the footer size in bytes, the number to watch on wide schemas. The per-row-group lines show row counts and both uncompressed and compressed sizes, so you can see whether a row-count default produced tiny or huge groups. The last line checks the first column chunk for column and offset indexes, which tells you whether page-level pruning is possible.

Run it across a sample of files from each writer that touches a table. Mixed layouts within one table are common, and they explain query times that vary by partition.

A Worked Sizing Example

Numbers make the trade-offs concrete. Take a hypothetical events table with 400 columns. Assume an average encoded row of 4 KB before compression. These are illustration inputs, not measurements, so swap in your own.

Written by parquet-java or Iceberg defaults. The writer closes a row group at about 128 MB of buffered data. At 4 KB per row, that’s roughly 32,000 rows per row group. A 512 MB Iceberg target file then holds about four row groups. The footer carries 400 column chunk entries per row group, so about 1,600 entries per file.

Written by default PyArrow. The writer closes a row group at 1,048,576 rows. At 4 KB per row, that’s about 4 GB of encoded data buffered before the first flush. Most Python services can’t hold that. In practice the writer either runs short of memory or the batch holds fewer rows than one group, and the whole file becomes a single row group. A single row group means one parallel task per file and min and max statistics that span the entire file.

Written by default DuckDB. The writer closes a row group at 122,880 rows, about 480 MB encoded. That sits between the other two. With no page index documented by default, pruning works at row group level only.

Now run the same filter against all three. A query on one day of events, in a table not partitioned by day, prunes best on the parquet-java layout because it has the most row groups per byte and a page index. It prunes worst on the single-row-group PyArrow file, where statistics cover the whole file. Same table, same query, three very different amounts of data read.

The arithmetic also shows why the row-count defaults exist. On a narrow table with 40-byte rows, 1,048,576 rows is about 40 MB, a sensible row group. The Arrow defaults fit typical Arrow workloads, which skew narrower than wide event tables. Every default assumes a table shape, and yours doesn’t have to match it.

Compression Defaults Differ Too

The compression column of the matrix deserves its own section, because it changes file size more than row group size does.

parquet-java and arrow-rs default to no compression at the library level. That surprises people, because files written by Spark are almost always compressed. Spark and other engines set a codec on top of the library default. Iceberg’s Java writer defaults to zstd. PyArrow and DuckDB default to Snappy.

Snappy and zstd trade differently. Snappy decompresses very fast and compresses less. zstd usually produces smaller files at a modest CPU cost, and it offers levels that move along that curve. On object storage, where you pay for bytes stored and often for bytes scanned, smaller files tend to win. On CPU-bound engines reading local caches, Snappy’s speed sometimes wins.

Compression interacts with page size more than with row group size, because codecs work per page. Larger pages give the compressor more context. That’s one reason the new page guidance says larger pages generally compress better, a claim reviewers on the PR asked to qualify, since the gain depends heavily on the data.

The practical point matches the sizing one. A table written by several writers holds files compressed several ways. Set the codec once as a table property and let compaction converge the old files.

Compaction Is the Layout Equalizer

If your table already holds files from several writers, you don’t need to fix every writer before you fix the table. Iceberg’s data file rewrite writes new files with the table’s current properties. Set the properties first, then compact.

CALL lake.system.rewrite_data_files(
  table   => 'analytics.events',
  where   => 'event_date >= DATE ''2026-11-01''',
  options => map(
    'target-file-size-bytes', '536870912',
    'min-input-files', '2'
  )
);

The where clause limits the rewrite to recent partitions. That keeps the first run small and lets you compare before and after on real queries. target-file-size-bytes matches the table property. min-input-files skips file groups that are already a single file. The rewritten files pick up the table’s Parquet properties for row group size, page size, dictionary limit, and codec, because the rewrite goes through the Iceberg writer.

Run the inspection script on a file from before the rewrite and a file from after. The created_by field changes to the engine that ran the compaction. The row group count changes to match the new size. The page index appears if the old file lacked one.

Compaction costs compute, so don’t rewrite the whole table on a hunch. Rewrite one partition, measure, then decide.

The footer trade-off in the row group guidance won’t stay fixed. Parquet’s modular footer proposal aims to let readers load metadata for only the columns and row groups they need, instead of parsing the whole Thrift footer. If that work lands and writers adopt it, the footer cost of many small row groups on wide schemas drops sharply.

That shifts the balance in the matrix. Today, footer size pushes wide tables toward fewer, larger row groups. With a modular footer, pruning and parallelism gain weight, and smaller row groups get cheaper. It’s one more reason to set values explicitly and revisit them, instead of burning one number into your mental model.

Choosing Values Without a Rule of Thumb

With the fixed numbers gone, here is a practical way to pick values.

  1. Start from what your engine’s writer does by default. Use the matrix to know what that is.
  2. Check whether your files have a page index. If they do, page-level pruning handles selective filters, and you can favor larger row groups for lower footer and memory cost. If they don’t, and you can’t turn it on, smaller row groups give you more pruning.
  3. Check the schema width. Wide schemas punish many small row groups through footer size. Narrow schemas tolerate them.
  4. Check how many files each query touches. Queries that hit a few large files need more row groups per file for parallelism. Queries that hit thousands of files already have plenty of parallel work.
  5. Check writer concurrency. Partitioned streaming writers keep many files open. Their memory budget caps row group size.
  6. Benchmark one change at a time. Rewrite a partition with new settings, run your real queries, and compare.

None of these steps needs a magic number. Each needs a measurement.

Failure Modes

Mixed writers, mixed layouts. Spark writes 128 MB row groups and a Python service writes 1Mi-row groups to the same table. Warning sign: query time varies by partition or by date range for the same query shape. Fix: set Iceberg table properties, route Python writes through a writer that honors them, or compact regularly so one layout wins.

Writer out-of-memory on wide tables. A row-count default on a wide schema creates row groups that don’t fit in memory. Warning sign: memory spikes or crashes in Python or Rust writers on wide tables only. Fix: set an explicit row group size, or use a byte limit where the writer offers one.

Footer bloat. Small row groups on a schema with thousands of columns. Warning sign: slow file open times even for queries that read one column. Fix: larger row groups, or fewer columns per table.

No page index where you assumed one. Default PyArrow files carry no page index. Warning sign: selective queries read whole row groups. Fix: set write_page_index=True, or rewrite those files through a writer that writes indexes.

Silent default changes. A library upgrade changes a default and new files look different. Warning sign: file sizes or row group counts change after a dependency bump. Fix: set every value you care about explicitly.

Revision Policy

This matrix is versioned. I’ll update it when one of these happens:

  • A writer listed here changes a default in a release.
  • The row group guidance PR from the November 23 discussion merges.
  • A widely used writer not listed here documents its defaults clearly enough to add a row.

Each revision bumps the version line at the top and adds a changelog entry here. Cells that can’t be confirmed from code or documentation stay marked as not documented, not filled with guesses.

Changelog

  • 2026.12 (December 1, 2026): first version. Five writers. Reflects parquet-site PR #223 and the November 23 row group discussion.

Conclusion

The Parquet community retired two fixed recommendations in one week, and that’s a healthy change. A page size from the era of disk pages and a row group size from the era of HDFS blocks described almost no modern files. The replacement guidance is honest. It names the trade-offs and asks you to measure.

Measuring starts with knowing your writer’s defaults. Today they disagree on units, row group sizes, page indexes, and compression. If your lakehouse has more than one writer, your tables already carry more than one layout. Use the matrix to see which, inspect your files to confirm it, and set the values you care about as Iceberg table properties so they stop depending on which job ran last.

For the structure underneath all of this, see the walkthrough of pages, row groups, and columns, the general Parquet performance tuning guide, how page indexes finish the job of pruning, the proposal to rework the Parquet footer, and the broader state of Apache Parquet in 2026.

Sources: Row group recommendation discussion, Nov 23, 2026 · parquet-site PR #223 · writer references linked under the matrix.

Keep Going

If this piece was useful, I have written a lot more on Parquet and Iceberg internals. Apache Iceberg: The Definitive Guide (O’Reilly) covers how Iceberg writes and manages Parquet files, including the table properties used here. You can find every book I have written, across lakehouse architecture, Apache Iceberg, Apache Polaris, and AI, at books.alexmerced.com.

Share :

Related Posts

ADBC 1.2 Planning: Metadata API, Credential Callbacks, Vendor Actions and What Driver Authors Should Expect

ADBC 1.2 Planning: Metadata API, Credential Callbacks, Vendor Actions and What Driver Authors Should Expect

ADBC 1.2 is the next revision of the Arrow Database Connectivity API, not a driver release. A Nov 24, 2026 planning session agreed on a credential callback limited to calling SetOption, on JSON struct...

Events and Skills Over MCP: What the Beta Extensions Change for Data Platform MCP Servers

Events and Skills Over MCP: What the Beta Extensions Change for Data Platform MCP Servers

Two MCP extensions reached beta in November 2026. Events lets an agent react when something happens, such as a commit to a table, without polling. Skills over MCP lets a server ship guidance on how to...

Compaction Against Concurrent Deletion Vectors in Iceberg: Re-Plan-and-Retry vs a Persisted Compaction Map

Compaction Against Concurrent Deletion Vectors in Iceberg: Re-Plan-and-Retry vs a Persisted Compaction Map

When deletion vectors land while Spark's RewriteDataFiles runs, compaction commits can fail, because every file group was planned from one starting snapshot. On Nov 24, 2026, Iceberg contributors lean...

Work with Alex