Add large-scale-diff decimal arithmetic integration tests #17121
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 342 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.349
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #17121"
general
weight: 0.35
res-life
Fixes #16895.
Depends on NVIDIA/cudf-spark-jni#5544. (merged now)
Description
Add PySpark CPU/GPU integration test coverage in
integration_tests/src/main/python/arithmetic_ops_test.pyfor large-scale-differenceDECIMAL128addition, subtraction, and integer division with single-partition batches exceeding 256 rows (length=600, num_slices=1). Existing integration tests did not trigger the CUDA 12.9ptxassm_120miscompile incudf-spark-jni'spow_tenbecause none of the pairs intest_addition_subtraction_mixedexceeded precision 38 (so rescaledropwas always 0),test_int_division_mixedhad a maximum scale difference of 5 (never 14, 16, or 18), andtwo_col_dfdefaults tonum_slices=None(defaultParallelism), which can split 2048 rows into partitions of 256 rows or fewer.Added tests:
test_decimal_addition_subtraction_large_scale_diff: coversDecimal(18,0) +/- Decimal(30,30),Decimal(38,17) +/- Decimal(31,0),Decimal(23,0) +/- Decimal(30,30), andDecimal(38,22) +/- Decimal(31,0)(rescale drops 11 and 16, includingDecimal(38,6)clamping without overflowing random inputs toNULL).test_decimal_int_division_large_scale_diff: coversDecimal(12,1) DIV Decimal(20,15),Decimal(12,1) DIV Decimal(22,17),Decimal(18,2) DIV Decimal(24,18), andDecimal(12,1) DIV Decimal(24,19)(scale differences 14, 16, and 18, withlhsinteger width larger thanrhssoDecimalGenproduces non-zero quotients rather than zeros that would mask downwardpow_tentruncation).Validation:
b90db65c3): validated locally on Blackwell (sm_120) against therelease/26.12build of NVIDIA/cudf-spark-jni#5544 (49618a37), and passedpython3 -m py_compileandgit diff --check.CPU CI gate,mvn[compile,RAT,scalastyle,docgen],pr-description-check,signoff-check,license-header-check) all passed.cudf-spark-jni:26.12.0-SNAPSHOTcontaining NVIDIA/cudf-spark-jni#5544.AI assistance (Devin) was used to prepare the tests and this pull request description; the author reviewed the diff and description before publication.
Checklists
Documentation
Testing
(Please provide the names of the existing tests in the PR description.)
Performance