Add auto-compact coverage for normalized timestamp partition grouping [databricks] #17062
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 · 279 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.337
Real PR Conversation Timeline
1 comments
"Review active on #17062"
general
weight: 0.35
gerashegalov
Fixes #17044.
Description
Delta Lake 4.3 (delta-io/delta#6624) groups OPTIMIZE files by normalized, typed partition values instead of raw partition strings. As a result, logically equal timestamp partition values written in different textual forms are compacted into one bin.
The plugin already groups this way on Delta 4.3 (
Delta43xRuntimeShim.groupOptimizeFilesByPartition), and Delta 3.3–4.2 group by raw strings on both CPU and GPU. This PR changes no plugin code. It adds test coverage:test_auto_compact_mixed_timestamp_partition_forms(OSS Delta 4.3 only). It writes the same timestamp partition in two raw forms plus a logically different value, withnormalizePartitionValuesOnReadon and off and with UTC andAmerica/Los_Angelessession time zones. It asserts:- a GPU write plan executed, and inline auto compaction ran on the GPU when expected;
- CPU/GPU parity for file counts, data and OPTIMIZE metrics;
- the equal forms merge into one file only when normalization is on, and the different value
never merges.
test_delta_optimize_normalized_timestamp_partitionsnow also runs on Databricks 17.3+.txn.filterFilesalready returns normalized partition values there, so GPU matches CPU without a code change.delta_lake_utils.py.Testing
Run on GPU, Spark 4.0.1 with Delta 4.3.0, all passing:
A mutation check (reverting
Delta43xRuntimeShimto raw grouping) made the new and existing tests fail.Databricks 17.3 (
400db173) and 18.3 (410db183): the compaction test passed on GPU, both parameter values.Checklists
Documentation
Testing
Performance