Extract duplicated Scala string literals into constants and helpers #17099
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.39) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 252 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.331
Real PR Conversation Timeline
1 comments
"Review active on #17099"
general
weight: 0.35
thirtiseven
Fixes #17098.
Description
Consolidate duplicated Scala string literals across 48 files in
sql-plugin-api,sql-plugin,udf-compiler(Scala 2.12 and 2.13),iceberg, anddelta-lakeinto privatefinal valconstants and shared config documentation helpers (RapidsConfSqlEntries), while keeping all runtime error messages, config descriptions, and version mappings unchanged.No behavioral or performance impact:
final valstring constants are compile-time constant expressions inlined byscalac, and extracted config documentation helpers run only once duringRapidsConfinitialization.Validation:
python3 build/check_shim_compatibility.py review --base-ref origin/mainandadvisory: core checkPASSacross all 35 profiles (0 new/existing findings); 4 joint-checked open peers reportedNO_NEW_INTERACTION_FINDINGS.mvn -N -Dbuildver=352 -Dspark.rapids.source.basedir=$PWD antrun:run@scalastyle-all-modules: 2,135 files checked, 0 errors, 0 warnings.mvn package -DskipTests -Dmaven.test.skip=true -Dbuildver=352 -pl sql-plugin-api,sql-plugin,udf-compiler,iceberg/iceberg-1-6-x -am:BUILD SUCCESS.mvn package -DskipTests -Dmaven.test.skip=true -Dbuildver=353 -pl delta-lake/delta-33x -am:BUILD SUCCESS.mvn package -f scala2.13/pom.xml -Dbuildver=400 -DskipTests -Dmaven.test.skip=true -pl udf-compiler -am:BUILD SUCCESS.350db143,400db173,410db183) and runtime unit/integration test suites, which will be covered by pre-merge CI.AI assistance was used to prepare the patch and run validation.
Checklists
Documentation
Testing
Performance