test: cover signed zero and null handling in numeric guards #7807
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.35) × (1 − Review Confidence (0.43)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.35 · 164 lines diff across 2 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.305
Real PR Conversation Timeline
1 comments
"Review active on #7807"
general
weight: 0.35
comphead
Which issue does this PR close?
Follow-up to #7730 for the numeric guard tests and the negative-zero logarithm input.
Rationale for this change
Both guards must turn
-0.0and+0.0into NULL and preserve NaN. They differ for negative finite inputs. A negative divisor is valid, while a negative logarithm argument yields NULL. The existing logarithm fixtures exercise positive zero and negative numbers. Negative zero exercises the sign bit at the boundary.What changes are included in this PR?
CAST('-0.0' AS DOUBLE)in the Parquet inputs forln,log10andlog2, so each function reads the signed zero from a column.How are these changes tested?
The Rust tests check array and scalar results for both float widths, including signed zeros, NaN, NULL and finite values on either side of zero. The decimal cases check that masking zero preserves the other values, precision and scale for Decimal128 and Decimal256. The SQL fixtures compare Comet with Spark, which returns NULL for each logarithm of negative zero. Hosted CI runs both suites.