Commit a741dcd
fix(compute): avoid Float/Double numeric promotion in boxDouble
A `Float ? : Double` conditional triggers binary numeric promotion (JLS
15.25): both branches unbox to double, so an f32 column's extreme was
boxed back to Double, violating the documented Float contract and
bit-identity with Reductions' MIN/MAX. Split into separate returns.
Fixes SonarCloud S2154.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 2ba5488 commit a741dcd
1 file changed
Lines changed: 8 additions & 2 deletions
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
225 | | - | |
226 | | - | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
227 | 233 | | |
228 | 234 | | |
229 | 235 | | |
| |||
0 commit comments