Fall back for row-tracked Delta DELETE with persistent deletion vectors [databricks] #17051
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.36) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 193 lines diff across 2 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.315
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #17051"
general
weight: 0.35
gerashegalov
Fixes #17046.
Description
On Databricks 17.3, a row-level
DELETEcan fail when the Delta table has both row tracking and persistent deletion vectors enabled. cudf-spark selects the GPU DELETE command even though the target scan falls back to CPU and cannot supply the physical row index expected by the GPU bitmap generator.Keep the native DELETE command on CPU for this combination. The guard uses the same predicate classification as execution, so whole-table and partition-only deletes retain their existing GPU eligibility.
Testing: Builds succeeded on DBR 17.3 and 18.3. Added new tests. The new cases cover both column mapping modes, files with existing deletion vectors, preservation of surviving row IDs and commit versions and continued GPU execution for partition-only deletes.
Performance: No benchmark was run. The affected DELETE fails on the unpatched build, so there is no successful GPU baseline for that case. The guard adds a driver-side predicate check without an additional data scan.
AI assistance was used for implementation and testing. The author reviewed and approved the complete changes before posting the PR.
Checklists
Documentation
Testing
Performance