From f598e6d47c1907760aa93de92d270d8349e534c7 Mon Sep 17 00:00:00 2001 From: Mikhail Surin Date: Sun, 17 Jun 2018 20:59:06 +0300 Subject: [PATCH] add tests --- dbms/tests/queries/0_stateless/00647_histogram.reference | 4 ++++ dbms/tests/queries/0_stateless/00647_histogram.sql | 4 ++++ 2 files changed, 8 insertions(+) create mode 100644 dbms/tests/queries/0_stateless/00647_histogram.reference create mode 100644 dbms/tests/queries/0_stateless/00647_histogram.sql diff --git a/dbms/tests/queries/0_stateless/00647_histogram.reference b/dbms/tests/queries/0_stateless/00647_histogram.reference new file mode 100644 index 00000000000..8eacb6c353a --- /dev/null +++ b/dbms/tests/queries/0_stateless/00647_histogram.reference @@ -0,0 +1,4 @@ +[(-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)] diff --git a/dbms/tests/queries/0_stateless/00647_histogram.sql b/dbms/tests/queries/0_stateless/00647_histogram.sql new file mode 100644 index 00000000000..0da7dbb1628 --- /dev/null +++ b/dbms/tests/queries/0_stateless/00647_histogram.sql @@ -0,0 +1,4 @@ +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);