Fixed tests

This commit is contained in:
Maksim Kita 2021-04-25 01:03:04 +03:00
parent cad6b5a590
commit 0c012d4288
2 changed files with 7 additions and 4 deletions

View File

@ -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

View File

@ -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;