Remove GPU sort-merge join support [databricks] #17264
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.40) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 294 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.340
Real PR Conversation Timeline
1 comments
"Review active on #17264"
general
weight: 0.35
gerashegalov
Fixes #16066.
Description
cuDF’s HashCSR improvements largely eliminate the low-cardinality hash-join penalty that motivated GPU sort-merge join support. Remove the optional sort-merge execution paths, fallback handling, strategy configuration value, and dedicated CI pass.
spark.rapids.sql.join.strategy=INNER_SORT_WITH_POSTis now an alias forINNER_HASH_WITH_POSTto maintain backwards compatability.Keep shared hash-join post-processing and build-side selection. Update the conditional outer-join regression tests to exercise
INNER_HASH_WITH_POST.Validation ran locally on an RTX A6000:
HashBuildPlannerSuiteandBroadcastHashJoinSuite: 32 passed.Online shim preflight and cross-PR advisory remain INCOMPLETE because authenticated GitHub CLI access was unavailable. Databricks runtime validation remains outstanding.
Performance measurements used shuffled INT32 keys, 10,000 rows per side, and 10 distinct keys:
| Measurement | Hash join | Sort-merge join |
|---|---:|---:|
| Native build and gather-map generation, median | 0.21 ms | 0.90 ms |
| Spark joinTime metric, median | 3.69 ms | 9.28 ms |
These measurements used a cuDF 27.02 snapshot. Sort-merge still won some synthetic forced-large-build and pre-sorted cases, but choosing the smaller hash build side reversed the forced-large-build advantage.
AI assistance: Codex assisted with implementation, benchmarking, and validation.
Checklists
Documentation
Testing
(Please provide the names of the existing tests in the PR description.)
Performance