Repository navigation
[Data] Drop hand projections from the TPC-H release scripts - #68456
Conversation
Signed-off-by: You-Cheng Lin <[email protected]>
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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.
| regional_suppliers, | |
| regional_suppliers.select_columns(["s_suppkey"]), |
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
Additional information