From 9ebef6e3cffda34096c321872dd0d3f42cc90e40 Mon Sep 17 00:00:00 2001 From: vdimir Date: Mon, 13 Sep 2021 13:06:38 +0300 Subject: [PATCH] Remove explicit DB in 01115_join_with_dictionary --- .../0_stateless/01115_join_with_dictionary.sql | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/tests/queries/0_stateless/01115_join_with_dictionary.sql b/tests/queries/0_stateless/01115_join_with_dictionary.sql index e0f281503d4..0c84d372f6d 100644 --- a/tests/queries/0_stateless/01115_join_with_dictionary.sql +++ b/tests/queries/0_stateless/01115_join_with_dictionary.sql @@ -1,12 +1,5 @@ --- Tags: no-parallel - SET send_logs_level = 'fatal'; -DROP DATABASE IF EXISTS db_01115; -CREATE DATABASE db_01115; - -USE db_01115; - DROP DICTIONARY IF EXISTS dict_flat; DROP DICTIONARY IF EXISTS dict_hashed; DROP DICTIONARY IF EXISTS dict_complex_cache; @@ -16,19 +9,19 @@ INSERT INTO t1 SELECT number, number, toString(number), number from numbers(4); CREATE DICTIONARY dict_flat (key UInt64 DEFAULT 0, a UInt8 DEFAULT 42, b String DEFAULT 'x', c Float64 DEFAULT 42.0) PRIMARY KEY key -SOURCE(CLICKHOUSE(HOST 'localhost' PORT tcpPort() USER 'default' TABLE 't1' PASSWORD '' DB 'db_01115')) +SOURCE(CLICKHOUSE(TABLE 't1')) LIFETIME(MIN 1 MAX 10) LAYOUT(FLAT()); -CREATE DICTIONARY db_01115.dict_hashed (key UInt64 DEFAULT 0, a UInt8 DEFAULT 42, b String DEFAULT 'x', c Float64 DEFAULT 42.0) +CREATE DICTIONARY dict_hashed (key UInt64 DEFAULT 0, a UInt8 DEFAULT 42, b String DEFAULT 'x', c Float64 DEFAULT 42.0) PRIMARY KEY key -SOURCE(CLICKHOUSE(HOST 'localhost' PORT tcpPort() USER 'default' TABLE 't1' DB 'db_01115')) +SOURCE(CLICKHOUSE(TABLE 't1')) LIFETIME(MIN 1 MAX 10) LAYOUT(HASHED()); CREATE DICTIONARY dict_complex_cache (key UInt64 DEFAULT 0, a UInt8 DEFAULT 42, b String DEFAULT 'x', c Float64 DEFAULT 42.0) PRIMARY KEY key, b -SOURCE(CLICKHOUSE(HOST 'localhost' PORT tcpPort() USER 'default' TABLE 't1' DB 'db_01115')) +SOURCE(CLICKHOUSE(TABLE 't1')) LIFETIME(MIN 1 MAX 10) LAYOUT(COMPLEX_KEY_CACHE(SIZE_IN_CELLS 1)); @@ -104,10 +97,8 @@ SELECT * FROM (SELECT number AS key FROM numbers(5)) s1 ANY LEFT JOIN dict_flat SELECT '-'; SELECT * FROM (SELECT number AS key FROM numbers(2)) s1 RIGHT JOIN dict_flat d ON s1.key = d.key ORDER BY d.key; - DROP DICTIONARY dict_flat; DROP DICTIONARY dict_hashed; DROP DICTIONARY dict_complex_cache; DROP TABLE t1; -DROP DATABASE IF EXISTS db_01115;