[Kernel] Type future-version failures for UC reads #7771
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 360 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.352
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #7771"
general
weight: 0.35
huan233usc
Which Delta project/connector is this regarding?
Description
UCCatalogManagedClientthrowsIllegalArgumentExceptionwhen a requested snapshot version or commit-range boundary exceeds UC's latest ratified version. CDF streaming withstartingVersion=latestrequestslatest + 1, so consumers need to distinguish an unavailable version from malformed arguments and other failures.Add
VersionToLoadAfterLatestCommitExceptionand use it for snapshot versions and explicit start/end versions above the catalog maximum, preserving the diagnostic messages. Invalid argument combinations, negative snapshot versions, and reversed ranges retainIllegalArgumentException. This supplies the precise UC failure type needed by #7754.Tests cover both the Kernel client and Spark snapshot-manager boundaries. This change shares the exception definition proposed in #7055, with contributor credit preserved, but does not include or depend on that PR's path-based or truncated-history changes. Either PR can merge first; the other can then reuse the shared class. Related to #6745.
How was this patch tested?
latest + 1and farther ahead, including exact exception type and diagnostic messages in the Kernel tests. The new future-version cases failed with the oldIllegalArgumentExceptionbefore their production changes.UCCatalogManagedClientSuite,UCCatalogManagedClientCommitRangeSuite, andUcLoadSnapshotTelemetrySuite.UCManagedTableSnapshotManagerSuitetests passed on Spark 4.0, including propagation of the typed exception for future snapshot and range-boundary versions.SnapshotManagerSuitetests without the path-based changes from #7055; that code is unchanged by the commit-range update.git diff --check, passed.Commands (Java 17):
Does this PR introduce _any_ user-facing changes?
Yes. A UC snapshot request or explicit commit-range start/end version above the latest ratified version now throws
VersionToLoadAfterLatestCommitException(aKernelException) instead ofIllegalArgumentException. The messages are unchanged. Callers handling this condition should catch the specific type.