From e8c29bf15fcf0bc3a29bac22fa6d61fdc985a921 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Sat, 8 May 2021 03:27:23 +0300 Subject: [PATCH] Adjust test because rounding in conversion of Float to Decimal has changed --- tests/queries/0_stateless/00700_decimal_math.reference | 2 +- tests/queries/0_stateless/00700_decimal_math.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/queries/0_stateless/00700_decimal_math.reference b/tests/queries/0_stateless/00700_decimal_math.reference index 88917004702..f58e08dc1fb 100644 --- a/tests/queries/0_stateless/00700_decimal_math.reference +++ b/tests/queries/0_stateless/00700_decimal_math.reference @@ -26,5 +26,5 @@ 1.00000 0.8427007929497149 0.15729920705028513 42.4200 115.60113124678627 1.6029995567009473e50 0.00 0 1 0 -3.1415926535897927981986333033020522496 0 -1 -0 +3.14159265358979 0 -1 -0 1.00 1.5707963267948966 0 0.7853981633974483 diff --git a/tests/queries/0_stateless/00700_decimal_math.sql b/tests/queries/0_stateless/00700_decimal_math.sql index a6c1ab2f393..237bee1c691 100644 --- a/tests/queries/0_stateless/00700_decimal_math.sql +++ b/tests/queries/0_stateless/00700_decimal_math.sql @@ -36,7 +36,7 @@ SELECT toDecimal128('1.0', 5) AS x, erf(x), erfc(x); SELECT toDecimal128('42.42', 4) AS x, lgamma(x), tgamma(x); SELECT toDecimal128('0.0', 2) AS x, round(sin(x), 8), round(cos(x), 8), round(tan(x), 8); -SELECT toDecimal128(pi(), 37) AS x, round(sin(x), 8), round(cos(x), 8), round(tan(x), 8); +SELECT toDecimal128(pi(), 14) AS x, round(sin(x), 8), round(cos(x), 8), round(tan(x), 8); SELECT toDecimal128('1.0', 2) AS x, asin(x), acos(x), atan(x);