Skip to content

[Data] Drop hand projections from the TPC-H release scripts - #68456

Merged
owenowenisme merged 2 commits into
ray-project:masterfrom
owenowenisme:owenowenisme/Benchmark-after-logical-optimization-merged
Nov 24, 2026
Merged

owenowenisme merged 2 commits into
ray-project:masterfrom
owenowenisme:owenowenisme/Benchmark-after-logical-optimization-merged

Conversation

@owenowenisme

@owenowenisme owenowenisme commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Description

With #68158 we dont have to hand-prune unused columns anymore, it automatically push projection down. So we don't have to manually write projection in test scripts
Can be merged after #68455

Related issues

Link related issues: "Fixes #1234", "Closes #1234", or "Related to #1234".

Additional information

Optional: Add implementation details, API changes, usage examples, screenshots, etc.

@owenowenisme owenowenisme added data Ray Data-related issues go add ONLY when ready to merge, run all tests labels Nov 23, 2026
@owenowenisme
owenowenisme marked this pull request as ready for review November 23, 2026 10:56

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request removes manual column projection (select_columns) across various TPC-H nightly benchmark scripts, relying instead on automatic projection pushdown to derive the required columns. One performance improvement opportunity was identified in tpch_q2.py: since regional_suppliers is a materialized dataset where projection pushdown does not apply, it should be manually pruned to only ['s_suppkey'] before joining in Branch B to avoid carrying unused large columns through the join and shuffle.

# ── Branch B: min supply cost per part from regional suppliers ──
regional_partsupp = partsupp.join(
regional_suppliers.select_columns(["s_suppkey"]),
regional_suppliers,

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.

medium

Since regional_suppliers is a materialized dataset, projection pushdown cannot automatically prune its columns. Joining the entire regional_suppliers dataset (which contains large columns like s_comment and s_address) in Branch B will carry these unused columns through the join and shuffle, leading to unnecessary memory usage and shuffle overhead. Pruning regional_suppliers to only ["s_suppkey"] before the join avoids this overhead.

Suggested change
regional_suppliers,
regional_suppliers.select_columns(["s_suppkey"]),

@owenowenisme
owenowenisme merged commit 77f34fc into ray-project:master Nov 24, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data Ray Data-related issues go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ray fails to serialize self-reference objects

2 participants