Skip to content

Commit f9fdfae

Browse files
fix: round for float/double
1 parent 3470e5f commit f9fdfae

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • native/spark-expr/src/math_funcs

native/spark-expr/src/math_funcs/round.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,8 @@ mod test {
222222
unreachable!()
223223
};
224224
// HALF_UP: 125.2345 rounds DOWN to 100, 150 ties round AWAY from zero to 200
225-
let expected = Decimal128Array::from(vec![100, -100, 200, -200, 0])
226-
.with_precision_and_scale(6, 0)?;
225+
let expected =
226+
Decimal128Array::from(vec![100, -100, 200, -200, 0]).with_precision_and_scale(6, 0)?;
227227
let actual = result.as_any().downcast_ref::<Decimal128Array>().unwrap();
228228
assert_eq!(actual, &expected);
229229
Ok(())

0 commit comments

Comments
 (0)