This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git
The following commit(s) were added to refs/heads/master by this push:
new b14d1c5 [fix](function) fix vec round reference #7421 (#7801)
b14d1c5 is described below
commit b14d1c54fdc5b565bafd6e5b54918b4f1a5feece
Author: shee <[email protected]>
AuthorDate: Sat Jan 22 10:09:10 2022 +0800
[fix](function) fix vec round reference #7421 (#7801)
reference #7421
---
be/src/vec/functions/math.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/be/src/vec/functions/math.cpp b/be/src/vec/functions/math.cpp
index 4aa156a..abff782 100644
--- a/be/src/vec/functions/math.cpp
+++ b/be/src/vec/functions/math.cpp
@@ -83,7 +83,7 @@ double my_double_round(double value, int64_t dec, bool
dec_unsigned, bool trunca
tmp2 = dec < 0 ? std::ceil(value_div_tmp) * tmp :
std::ceil(value_mul_tmp) / tmp;
}
} else {
- tmp2 = dec < 0 ? std::rint(value_div_tmp) * tmp :
std::rint(value_mul_tmp) / tmp;
+ tmp2 = dec < 0 ? std::round(value_div_tmp) * tmp :
std::round(value_mul_tmp) / tmp;
}
return tmp2;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]