From ce67ebdded85b02379da87645d91089875c6769a Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Wed, 17 Oct 2018 09:02:48 +0300 Subject: [PATCH] Updated test [#CLICKHOUSE-3] --- ...00740_optimize_predicate_expression.reference | 1 + .../00740_optimize_predicate_expression.sql | 16 ++++++++-------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/dbms/tests/queries/0_stateless/00740_optimize_predicate_expression.reference b/dbms/tests/queries/0_stateless/00740_optimize_predicate_expression.reference index e69de29bb2d..6db331af725 100644 --- a/dbms/tests/queries/0_stateless/00740_optimize_predicate_expression.reference +++ b/dbms/tests/queries/0_stateless/00740_optimize_predicate_expression.reference @@ -0,0 +1 @@ +nan diff --git a/dbms/tests/queries/0_stateless/00740_optimize_predicate_expression.sql b/dbms/tests/queries/0_stateless/00740_optimize_predicate_expression.sql index ff7f7a7aad0..57a7aa81ade 100644 --- a/dbms/tests/queries/0_stateless/00740_optimize_predicate_expression.sql +++ b/dbms/tests/queries/0_stateless/00740_optimize_predicate_expression.sql @@ -1,7 +1,7 @@ -DROP TABLE IF EXISTS users.perf; -CREATE TABLE users.perf (site String, user_id UInt64, z Float64) ENGINE = Log; +DROP TABLE IF EXISTS test.perf; +CREATE TABLE test.perf (site String, user_id UInt64, z Float64) ENGINE = Log; -SELECT * FROM (SELECT perf_1.z AS z_1 FROM users.perf AS perf_1); +SELECT * FROM (SELECT perf_1.z AS z_1 FROM test.perf AS perf_1); SELECT sum(mul)/sqrt(sum(sqr_dif_1) * sum(sqr_dif_2)) AS z_r FROM( @@ -10,11 +10,11 @@ SELECT avg(z_2) AS z_2_avg FROM ( SELECT perf_1.site, perf_1.z AS z_1 - FROM users.perf AS perf_1 + FROM test.perf AS perf_1 WHERE user_id = 000 ) ALL INNER JOIN ( SELECT perf_2.site, perf_2.z AS z_2 - FROM users.perf AS perf_2 + FROM test.perf AS perf_2 WHERE user_id = 999 ) USING site) as avg_values, z_1 - avg_values.1 AS dif_1, @@ -24,12 +24,12 @@ SELECT dif_2*dif_2 AS sqr_dif_2 FROM ( SELECT perf_1.site, perf_1.z AS z_1 - FROM users.perf AS perf_1 + FROM test.perf AS perf_1 WHERE user_id = 000 ) ALL INNER JOIN ( SELECT perf_2.site, perf_2.z AS z_2 - FROM users.perf AS perf_2 + FROM test.perf AS perf_2 WHERE user_id = 999 ) USING site); -DROP TABLE users.perf; +DROP TABLE test.perf;