[SPARK-60935][SQL] Remove unused `Shim.getAllPartitions` from `HiveShim` #60136
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 221 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.323
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #60136"
general
weight: 0.35
peter-toth
What changes were proposed in this pull request?
This PR removes the unused
Shim.getAllPartitions(hive, table)abstract method and its only implementationShim_v2_0.getAllPartitionsfromHiveShim.scala.Why are the changes needed?
Nothing calls
Shim.getAllPartitions.Shimis aprivate[client] sealed abstract class, so it cannot be used outside theorg.apache.spark.sql.hive.clientpackage, and no test uses it either.Shim_v2_0.getPartitionsByFilterfalls back tohive.getAllPartitionsOf(table)directly rather than through this method.History of the method:
HiveClientImpl.getPartitions()to callclient.getPartitionsinstead ofshim.getAllPartitionswhen the partition spec is empty. That removed the last caller outside the shim.Shim_v0_12.getPartitionsByFilterused the method, because Hive 0.12 cannot push the filter down to the metastore (HIVE-4888) and had to fetch all partitions.Shim_v2_0but dropped that only caller, so the method has had no callers since.Does this PR introduce _any_ user-facing change?
No. The removed method is internal (
private[client]) and has no callers.How was this patch tested?
Pass the CIs. Also verified locally:
Was this patch authored or co-authored using generative AI tooling?
Generated-by: Claude Sonnet 5.5