fix(spark): return NaN and -Infinity from pow where Spark does #67
All Vouch review confidence checks passed
Residual risk 0.13 = Change Risk (0.32) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.32 · 131 lines diff across 1 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.292
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #67"
general
weight: 0.35
kosiew
Which issue does this PR close?
Ports apache/datafusion#26382 (
3d7e19156), which was merged in apache/datafusion afterdatafusion-sparkmoved to this repository.Rationale for this change
Keep this repository in sync with the last change made to
datafusion/sparkupstream. See apache/datafusion#26382 for the rationale.What changes are included in this PR?
The upstream diff, with paths remapped:
crates/spark/src/function/math/pow.rscrates/sqllogictest/test_files/math/pow.sltThe diff applied without conflicts.
Are these changes tested?
cargo clippy --all-targets --all-features -- -D warnings: cleancargo test -p datafusion-spark: 324 passedcargo test -p datafusion-spark-sqllogictest: 245 of 245 files passedcargo fmt --all -- --check --config edition=2024,max_width=90: clean. The defaultcargo fmtcheck fails onmainuntil #61 addsrustfmt.toml.Are there any user-facing changes?
Yes, as described in apache/datafusion#26382:
pownow returns NaN and -Infinity where Spark does.