Skip to content

doc: Document scan tuning for spark.sql.files.maxPartitionBytes#4931

Open
comphead wants to merge 2 commits into
apache:mainfrom
comphead:doc
Open

doc: Document scan tuning for spark.sql.files.maxPartitionBytes#4931
comphead wants to merge 2 commits into
apache:mainfrom
comphead:doc

Conversation

@comphead

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Related #3817.

Rationale for this change

What changes are included in this PR?

How are these changes tested?

@comphead comphead requested a review from andygrove July 14, 2026 21:43
### Native scans

For native scans it is better to check `spark.sql.files.maxPartitionBytes` which is `128M` by default and
set it to `spark.sql.files.maxPartitionBytes: 64M`. The difference comes from how Apache DataFusion and Spark determine the Parquet row group boundaries.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this mean we should recommend setting spark.sql.files.maxPartitionBytes to half of parquet.block.size?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants