[Spark] Convert SnapshotManagerFactory to Scala #8055
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.35) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.35 · 172 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.308
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #8055"
general
weight: 0.35
huan233usc
Which Delta project/connector is this regarding?
Description
Convert
SnapshotManagerFactoryfrom a Java utility class to a Scala object and acceptOption[CatalogTable]. Scala callers can pass catalog metadata directly, while Java callers use ScalaOption. Preserve catalog selection, lookup timing, exceptions, and lazy path-based fallback.Keep the factory scoped to the v2 connector. Adapt the existing cache tests to scoped Scala-object spying, add the required test dependency, and open the Java reflection module for those tests on Java 17. Existing test cases and assertions are unchanged.
How was this patch tested?
Validated rebased head
dc2784b985f00d6543dd3be6a563d181e7be1b8eagainst masteref61df0920cec80f49c2142719f823dbf626c6adon Java 17 with Spark 4.2:All 42 tests passed: 35 cache tests and 7 UC utility tests. Unified compilation, including both Java changelog callers, and
git diff --checkpassed. The rebase preserves the seven-file contribution scope and all existing assertions.Does this PR introduce _any_ user-facing changes?
No.