Fix AQE cache scan expectations on Spark 3.5.0 and 3.5.1 [databricks] #17129
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.39) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 242 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 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
Diff Size
diff_size
0.329
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #17129"
general
weight: 0.35
thirtiseven
Fixes #17125.
Description
On Spark 3.5.0, adaptive query execution (AQE) can wrap a cache scan in a table-cache query stage even when the input has no explicit repartition. The existing compatibility fallback keeps that scan on the CPU, but this test only expected the fallback for repartitioned input, causing five valid row-input cases to fail their GPU-scan assertion.
Extend the Spark 3.5.0/3.5.1 AQE fallback expectation to row input. Keep the Databricks 17.3+ condition and GPU-scan requirements for other supported versions unchanged. This is test maintenance only; production behavior and CPU/GPU result comparisons are unchanged, and no data divergence was observed.
Validation on an RTX 5880 Ada with Java 17, Python 3.10, and the Parquet cache serializer:
AI assistance: The change and PR description were prepared with Codex assistance.
Checklists
Documentation
Testing
(Please provide the names of the existing tests in the PR description.)
Performance