Skip to content

chore: remove dead Parquet parallel-IO configs#4981

Merged
mbutrovich merged 1 commit into
apache:mainfrom
andygrove:remove-dead-io-configs
Jul 20, 2026
Merged

chore: remove dead Parquet parallel-IO configs#4981
mbutrovich merged 1 commit into
apache:mainfrom
andygrove:remove-dead-io-configs

Conversation

@andygrove

Copy link
Copy Markdown
Member

Which issue does this PR close?

Partially addresses #4842 (Item #9 in the remediation section: "Delete or implement the dead IO configs (parallel.io.*, mergeRanges) so benchmarking isn't misled").

Rationale for this change

The following configs are defined in CometConf.scala but referenced nowhere in current native or JVM code. They were consumed by the JVM-side Parquet reader that has since been removed:

  • spark.comet.parquet.read.parallel.io.enabled (default true)
  • spark.comet.parquet.read.parallel.io.thread-pool.size (default 16)
  • spark.comet.parquet.read.io.mergeRanges (default true)
  • spark.comet.parquet.read.io.mergeRanges.delta (default 8 MB)
  • spark.comet.parquet.read.io.adjust.readRange.skew (default false)

These are a trap: they appear tunable but change nothing. Anyone benchmarking "Comet with IO tuning" is tuning a no-op.

What changes are included in this PR?

  • Delete the five dead config entries from CometConf.scala.
  • Delete the stale ParquetReadSuite "test merge scan range" test, which only asserted that the (dead) config propagated to the Hadoop conf.

The auto-generated configs.md will be regenerated on the next docs build and will no longer list these entries.

How are these changes tested?

Compile-checked against spark-3.5. No behavior change — these configs were no-ops in current code.

These configs were consumed by the JVM-side Parquet reader that has since
been removed. They are referenced nowhere in current native or JVM code
and mislead operators tuning benchmarks.

Removed configs:
- spark.comet.parquet.read.parallel.io.enabled
- spark.comet.parquet.read.parallel.io.thread-pool.size
- spark.comet.parquet.read.io.mergeRanges
- spark.comet.parquet.read.io.mergeRanges.delta
- spark.comet.parquet.read.io.adjust.readRange.skew

Also removes the stale ParquetReadSuite "test merge scan range" test,
which only asserted that the (dead) config propagated to the Hadoop conf.

Refs apache#4842.
@andygrove
andygrove requested a review from parthchandra July 20, 2026 18:12
@mbutrovich

Copy link
Copy Markdown
Contributor

Can you nab "spark.comet.use.lazyMaterialization" as well?

@mbutrovich

Copy link
Copy Markdown
Contributor

Actually, CI is green, we can get it in a followup.

@mbutrovich mbutrovich left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks @andygrove!

@mbutrovich
mbutrovich merged commit b016555 into apache:main Jul 20, 2026
71 checks passed
@andygrove
andygrove deleted the remove-dead-io-configs branch July 20, 2026 18:55
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