From e4ec8ffc490eae7abf5fe77d2a858bf3396002b5 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Sat, 29 Sep 2018 22:50:12 +0300 Subject: [PATCH] Fixed test; tests that require server to listen something other than 127.0.0.1, must be tagged as "shard" in their names [#CLICKHOUSE-2] --- dbms/tests/queries/0_stateless/00273_quantiles.reference | 4 ---- dbms/tests/queries/0_stateless/00273_quantiles.sql | 5 ----- .../queries/0_stateless/00725_quantiles_shard.reference | 4 ++++ dbms/tests/queries/0_stateless/00725_quantiles_shard.sql | 4 ++++ 4 files changed, 8 insertions(+), 9 deletions(-) create mode 100644 dbms/tests/queries/0_stateless/00725_quantiles_shard.reference create mode 100644 dbms/tests/queries/0_stateless/00725_quantiles_shard.sql diff --git a/dbms/tests/queries/0_stateless/00273_quantiles.reference b/dbms/tests/queries/0_stateless/00273_quantiles.reference index ffa9c3ff0a9..d75d11191f4 100644 --- a/dbms/tests/queries/0_stateless/00273_quantiles.reference +++ b/dbms/tests/queries/0_stateless/00273_quantiles.reference @@ -2005,7 +2005,3 @@ 333333 1 [2,2,2] [2,2,2] 500000 1 [1,1,1] [1,1,1] 1000000 1 [0,0,0] [0,0,0] -[4.5,8.100000000000001] -[5,9] -[4.5,8.5] -[4.5,8.100000000000001] diff --git a/dbms/tests/queries/0_stateless/00273_quantiles.sql b/dbms/tests/queries/0_stateless/00273_quantiles.sql index 4c8e22a660e..a3609834e3c 100644 --- a/dbms/tests/queries/0_stateless/00273_quantiles.sql +++ b/dbms/tests/queries/0_stateless/00273_quantiles.sql @@ -9,8 +9,3 @@ SELECT quantilesTDigest(0, 0.001, 0.01, 0.05, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, SELECT quantilesDeterministic(0, 0.001, 0.01, 0.05, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 0.95, 0.99, 0.999, 1)(x, x) FROM (SELECT number AS x FROM system.numbers LIMIT 1001); SELECT round(1000000 / (number + 1)) AS k, count() AS c, quantilesDeterministic(0.1, 0.5, 0.9)(number, intHash64(number)) AS q1, quantilesExact(0.1, 0.5, 0.9)(number) AS q2 FROM (SELECT number FROM system.numbers LIMIT 1000000) GROUP BY k ORDER BY k; - -SELECT quantiles(0.5, 0.9)(number) FROM remote('127.0.0.{1,2}', numbers(10)); -SELECT quantilesExact(0.5, 0.9)(number) FROM remote('127.0.0.{1,2}', numbers(10)); -SELECT quantilesTDigest(0.5, 0.9)(number) FROM remote('127.0.0.{1,2}', numbers(10)); -SELECT quantilesDeterministic(0.5, 0.9)(number, number) FROM remote('127.0.0.{1,2}', numbers(10)); diff --git a/dbms/tests/queries/0_stateless/00725_quantiles_shard.reference b/dbms/tests/queries/0_stateless/00725_quantiles_shard.reference new file mode 100644 index 00000000000..6974bee9735 --- /dev/null +++ b/dbms/tests/queries/0_stateless/00725_quantiles_shard.reference @@ -0,0 +1,4 @@ +[4.5,8.100000000000001] +[5,9] +[4.5,8.5] +[4.5,8.100000000000001] diff --git a/dbms/tests/queries/0_stateless/00725_quantiles_shard.sql b/dbms/tests/queries/0_stateless/00725_quantiles_shard.sql new file mode 100644 index 00000000000..bb8fcfcd2d9 --- /dev/null +++ b/dbms/tests/queries/0_stateless/00725_quantiles_shard.sql @@ -0,0 +1,4 @@ +SELECT quantiles(0.5, 0.9)(number) FROM remote('127.0.0.{1,2}', numbers(10)); +SELECT quantilesExact(0.5, 0.9)(number) FROM remote('127.0.0.{1,2}', numbers(10)); +SELECT quantilesTDigest(0.5, 0.9)(number) FROM remote('127.0.0.{1,2}', numbers(10)); +SELECT quantilesDeterministic(0.5, 0.9)(number, number) FROM remote('127.0.0.{1,2}', numbers(10));