mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Make the test results more stable with respect to floating point calculations method #2521
This commit is contained in:
parent
bfc29a3b91
commit
018e48399e
@ -1,5 +1,7 @@
|
||||
[(-10,-6.5,4),(-6.5,-2.5,4),(-2.5,1.75,4.125),(1.75,6,4.625),(6,9,3.25)]
|
||||
[(0,3.5,4),(3.5,7.5,4),(7.5,11.75,4.125),(11.75,16,4.625),(16,19,3.25)]
|
||||
[(-0.9589242746631385,-0.4519809408492764,2.125),(-0.4519809408492764,0.3578739258652408,3.125),(0.3578739258652408,0.9893582466233818,4.75)]
|
||||
[(-0.9999902065507035,0.9999902065507035,80)]
|
||||
-0.96 -0.45 2.12
|
||||
-0.45 0.36 3.12
|
||||
0.36 0.99 4.75
|
||||
-1 1 80
|
||||
[(-2,-2,1)]
|
||||
|
@ -1,6 +1,7 @@
|
||||
select histogram(5)(number-10) from (select * from system.numbers limit 20);
|
||||
select histogram(5)(number) from (select * from system.numbers limit 20);
|
||||
select histogram(3)(sin(number)) from (select * from system.numbers limit 10);
|
||||
select histogram(1)(sin(number-40)) from (select * from system.numbers limit 80);
|
||||
|
||||
WITH arrayJoin(histogram(3)(sin(number))) AS res select round(res.1, 2), round(res.2, 2), round(res.3, 2) from (select * from system.numbers limit 10);
|
||||
WITH arrayJoin(histogram(1)(sin(number-40))) AS res SELECT round(res.1, 2), round(res.2, 2), round(res.3, 2) from (select * from system.numbers limit 80);
|
||||
|
||||
SELECT histogram(10)(-2);
|
||||
|
Loading…
Reference in New Issue
Block a user