From 0c012d4288fd8c43dc996d933462c122a219b693 Mon Sep 17 00:00:00 2001 From: Maksim Kita Date: Sun, 25 Apr 2021 01:03:04 +0300 Subject: [PATCH] Fixed tests --- .../0_stateless/01018_ddl_dictionaries_create.reference | 5 ++++- tests/queries/0_stateless/01018_ddl_dictionaries_create.sql | 6 +++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/tests/queries/0_stateless/01018_ddl_dictionaries_create.reference b/tests/queries/0_stateless/01018_ddl_dictionaries_create.reference index e591300eddc..a4e2f380eb8 100644 --- a/tests/queries/0_stateless/01018_ddl_dictionaries_create.reference +++ b/tests/queries/0_stateless/01018_ddl_dictionaries_create.reference @@ -12,7 +12,10 @@ db_01018 dict1 ==DROP DICTIONARY 0 =DICTIONARY in Memory DB -0 +CREATE DICTIONARY memory_db.dict2\n(\n `key_column` UInt64 DEFAULT 0 INJECTIVE,\n `second_column` UInt8 DEFAULT 1 EXPRESSION rand() % 222,\n `third_column` String DEFAULT \'qqq\'\n)\nPRIMARY KEY key_column\nSOURCE(CLICKHOUSE(HOST \'localhost\' PORT tcpPort() USER \'default\' TABLE \'table_for_dict\' PASSWORD \'\' DB \'database_for_dict_01018\'))\nLIFETIME(MIN 1 MAX 10)\nLAYOUT(FLAT()) +dict2 +1 +memory_db dict2 =DICTIONARY in Lazy DB =DROP DATABASE WITH DICTIONARY dict4 diff --git a/tests/queries/0_stateless/01018_ddl_dictionaries_create.sql b/tests/queries/0_stateless/01018_ddl_dictionaries_create.sql index f7d34071eb0..dd62f1451a8 100644 --- a/tests/queries/0_stateless/01018_ddl_dictionaries_create.sql +++ b/tests/queries/0_stateless/01018_ddl_dictionaries_create.sql @@ -89,9 +89,9 @@ CREATE DICTIONARY memory_db.dict2 PRIMARY KEY key_column SOURCE(CLICKHOUSE(HOST 'localhost' PORT tcpPort() USER 'default' TABLE 'table_for_dict' PASSWORD '' DB 'database_for_dict_01018')) LIFETIME(MIN 1 MAX 10) -LAYOUT(FLAT()); -- {serverError 48} +LAYOUT(FLAT()); -SHOW CREATE DICTIONARY memory_db.dict2; -- {serverError 487} +SHOW CREATE DICTIONARY memory_db.dict2; SHOW DICTIONARIES FROM memory_db LIKE 'dict2'; @@ -114,7 +114,7 @@ CREATE DICTIONARY lazy_db.dict3 PRIMARY KEY key_column, second_column SOURCE(CLICKHOUSE(HOST 'localhost' PORT tcpPort() USER 'default' TABLE 'table_for_dict' PASSWORD '' DB 'database_for_dict_01018')) LIFETIME(MIN 1 MAX 10) -LAYOUT(COMPLEX_KEY_HASHED()); -- {serverError 48} +LAYOUT(COMPLEX_KEY_HASHED()); --{serverError 1} DROP DATABASE IF EXISTS lazy_db;