Fixed tests

This commit is contained in:
Maksim Kita 2021-06-28 01:41:55 +03:00
parent 2b46006774
commit 31ecef90c3
3 changed files with 29 additions and 26 deletions

View File

@ -1,4 +1,4 @@
1 Table1
2 Table2
1 Table1
2 Table2
1 Table1

View File

@ -1,39 +1,39 @@
DROP DATABASE IF EXISTS 01915_db;
CREATE DATABASE 01915_db ENGINE=Atomic;
DROP DATABASE IF EXISTS 01914_db;
CREATE DATABASE 01914_db ENGINE=Atomic;
DROP TABLE IF EXISTS 01915_db.table_1;
CREATE TABLE 01915_db.table_1 (id UInt64, value String) ENGINE=TinyLog;
DROP TABLE IF EXISTS 01914_db.table_1;
CREATE TABLE 01914_db.table_1 (id UInt64, value String) ENGINE=TinyLog;
DROP TABLE IF EXISTS 01915_db.table_2;
CREATE TABLE 01915_db.table_2 (id UInt64, value String) ENGINE=TinyLog;
DROP TABLE IF EXISTS 01914_db.table_2;
CREATE TABLE 01914_db.table_2 (id UInt64, value String) ENGINE=TinyLog;
INSERT INTO 01915_db.table_1 VALUES (1, 'Table1');
INSERT INTO 01915_db.table_2 VALUES (2, 'Table2');
INSERT INTO 01914_db.table_1 VALUES (1, 'Table1');
INSERT INTO 01914_db.table_2 VALUES (2, 'Table2');
DROP DICTIONARY IF EXISTS 01915_db.dictionary_1;
CREATE DICTIONARY 01915_db.dictionary_1 (id UInt64, value String)
DROP DICTIONARY IF EXISTS 01914_db.dictionary_1;
CREATE DICTIONARY 01914_db.dictionary_1 (id UInt64, value String)
PRIMARY KEY id
LAYOUT(DIRECT())
SOURCE(CLICKHOUSE(DB '01915_db' TABLE 'table_1'));
SOURCE(CLICKHOUSE(DB '01914_db' TABLE 'table_1'));
DROP DICTIONARY IF EXISTS 01915_db.dictionary_2;
CREATE DICTIONARY 01915_db.dictionary_2 (id UInt64, value String)
DROP DICTIONARY IF EXISTS 01914_db.dictionary_2;
CREATE DICTIONARY 01914_db.dictionary_2 (id UInt64, value String)
PRIMARY KEY id
LAYOUT(DIRECT())
SOURCE(CLICKHOUSE(DB '01915_db' TABLE 'table_2'));
SOURCE(CLICKHOUSE(DB '01914_db' TABLE 'table_2'));
SELECT * FROM 01915_db.dictionary_1;
SELECT * FROM 01915_db.dictionary_2;
SELECT * FROM 01914_db.dictionary_1;
SELECT * FROM 01914_db.dictionary_2;
EXCHANGE DICTIONARIES 01915_db.dictionary_1 AND 01915_db.dictionary_2;
EXCHANGE DICTIONARIES 01914_db.dictionary_1 AND 01914_db.dictionary_2;
SELECT * FROM 01915_db.dictionary_1;
SELECT * FROM 01915_db.dictionary_2;
SELECT * FROM 01914_db.dictionary_1;
SELECT * FROM 01914_db.dictionary_2;
DROP DICTIONARY 01915_db.dictionary_1;
DROP DICTIONARY 01915_db.dictionary_2;
DROP DICTIONARY 01914_db.dictionary_1;
DROP DICTIONARY 01914_db.dictionary_2;
DROP TABLE 01915_db.table_1;
DROP TABLE 01915_db.table_2;
DROP TABLE 01914_db.table_1;
DROP TABLE 01914_db.table_2;
DROP DATABASE 01915_db;
DROP DATABASE 01914_db;

View File

@ -848,6 +848,9 @@
"01870_buffer_flush", // creates database
"01889_postgresql_protocol_null_fields",
"01889_check_row_policy_defined_using_user_function",
"01921_concurrent_ttl_and_normal_merges_zookeeper_long" // heavy test, better to run sequentially
"01921_concurrent_ttl_and_normal_merges_zookeeper_long", // heavy test, better to run sequentially
"01913_replace_dictionary",
"01914_exchange_dictionaries",
"01915_create_or_replace_dictionary"
]
}