Test Delta 4.3 dynamic partition overwrite partition value normalization on GPU [databricks] #16611
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 340 lines diff across 4 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.349
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #16611"
general
weight: 0.35
sdrp713
Fixes #16610.
Delta Lake 4.3 normalizes partition values when dynamic partition overwrite decides which files to remove, so equivalent but differently formatted values (timestamps, dates, decimals) match. The GPU Delta 4.3 write path already passes the new
AddFiles to Delta'stxn.filterFiles(Seq[AddFile]), which does the normalization, so no plugin code changes are needed. This PR adds integration tests showing the GPU matches the CPU.New tests in
delta_lake_write_test.pyrewrite the stored partition strings in the table logs, then run a DPO write on CPU and GPU. Each test checks the final rows, the removedAddFilepartition values (which must be exactly the respelled strings), and, where possible, the full CPU/GPU logs:UTCandAmerica/Los_Angeles, including microseconds, the DST fall-back hour, and mixed spellings in one tableinsertInto,saveAsTable, and SQLINSERT OVERWRITEon a table with two partition columnsparsePartitionValues=false, where raw string comparison appliesfailOnPartitionValueParsingError=trueboth CPU and GPU fail with the same error and commit nothing. The GPU write is verified to run on the GPU in both cases.The tests run only on Delta 4.3 and skip otherwise. The
saveAsTablecase depends on #16647 (V1saveAsTableoverwrite detection on Spark 4.x), which is already onmain.Performance tests are not required because this change only adds regression tests and does not modify runtime code or the existing GPU write path.
Validation
Run locally on a GPU (RTX 6000 Ada), Delta 4.3.0, plugin built from
mainplus this change:delta_lake_write_test.py, 144 and 147 passed, 0 failed, run before the latest review fixesChecklists
Documentation
Testing
(Please provide the names of the existing tests in the PR description.)
Performance