diff --git a/dbms/tests/queries/0_stateless/00647_histogram.reference b/dbms/tests/queries/0_stateless/00647_histogram.reference index 8eacb6c353a..432b0837d2c 100644 --- a/dbms/tests/queries/0_stateless/00647_histogram.reference +++ b/dbms/tests/queries/0_stateless/00647_histogram.reference @@ -2,3 +2,4 @@ [(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)] +[(-2,-2,1)] diff --git a/dbms/tests/queries/0_stateless/00647_histogram.sql b/dbms/tests/queries/0_stateless/00647_histogram.sql index 0da7dbb1628..8a4bc09acce 100644 --- a/dbms/tests/queries/0_stateless/00647_histogram.sql +++ b/dbms/tests/queries/0_stateless/00647_histogram.sql @@ -2,3 +2,5 @@ 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); + +SELECT histogram(10)(-2);