Fix Delta optimized write on a partitioned table with column mapping enabled #16827
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 246 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.330
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #16827"
general
weight: 0.35
sdrp713
Fixes #16796.
Description
GPU optimized writes to partitioned Delta tables using
nameoridcolumn mapping fail withNoSuchElementException: None.get. Shuffle planning searches for physical partition-column names in plan output that uses logical names.Resolve partition attributes using logical names and case-insensitive matching, preserve the synthetic
__is_cdccolumn for change data capture, and replace the unchecked lookup with a descriptive error. Update both open-source Delta and Databricks implementations.Regression coverage includes column mapping with optimized write and adaptive execution enabled/disabled, plus UPDATE writes with change data capture. Validation passed:
A benchmark on Spark 3.5.5 / Delta 3.3.3 used one RTX A5500, 6,666,664 rows, eight approximately 100 MB input partitions, four table partition values, cached input, Snappy compression, and adaptive execution disabled. Ten measured writes per configuration followed warm-ups; the unmapped comparison ran in both build orders.
| Column mapping | Pre-fix median | Fixed median |
|---|---:|---:|
| Disabled | 4\.524 s | 4\.529 s |
|
name|None.getfailure | 4\.635 s |The unmapped workload changed by +0.12%, within observed timing variation. All output checksums matched.
AI assistance was used for implementation, validation, and review.
Checklists
Documentation
Testing
(Please provide the names of the existing tests in the PR description.)
Performance