mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 11:02:08 +00:00
remove stateless tests for replicated db
This commit is contained in:
parent
31910e9bf1
commit
fbbccaf98a
@ -1,10 +0,0 @@
|
||||
DROP DATABASE IF EXISTS test_db1;
|
||||
DROP DATABASE IF EXISTS test_db2;
|
||||
|
||||
CREATE DATABASE test_db1 ENGINE = Replicated('/clickhouse/databases/test1', 'id1');
|
||||
CREATE TABLE test_db1.replicated_table (d Date, k UInt64, i32 Int32) ENGINE=ReplicatedMergeTree('/clickhouse/tables/test1', 'id1', d, k, 8192);
|
||||
CREATE TABLE test_db1.basic_table (EventDate Date, CounterID Int) engine=MergeTree(EventDate, (CounterID, EventDate), 8192);
|
||||
|
||||
CREATE DATABASE test_db2 ENGINE = Replicated('/clickhouse/databases/test1', 'id2');
|
||||
CREATE TABLE test_db2.replicated_table (d Date, k UInt64, i32 Int32) ENGINE=ReplicatedMergeTree('/clickhouse/tables/test1', 'id2', d, k, 8192);
|
||||
CREATE TABLE test_db2.basic_table (EventDate Date, CounterID Int) engine=MergeTree(EventDate, (CounterID, EventDate), 8192);
|
@ -1,34 +0,0 @@
|
||||
CounterID UInt32
|
||||
StartDate Date
|
||||
UserID UInt32
|
||||
VisitID UInt32
|
||||
Added0 String
|
||||
Added1 UInt32
|
||||
Added2 UInt32
|
||||
AddedNested1.A Array(UInt32)
|
||||
AddedNested1.C Array(String)
|
||||
AddedNested2.A Array(UInt32)
|
||||
AddedNested2.B Array(UInt64)
|
||||
CounterID UInt32
|
||||
StartDate Date
|
||||
UserID UInt32
|
||||
VisitID UInt32
|
||||
Added0 String
|
||||
Added1 UInt32
|
||||
Added2 UInt32
|
||||
AddedNested1.A Array(UInt32)
|
||||
AddedNested1.C Array(String)
|
||||
AddedNested2.A Array(UInt32)
|
||||
AddedNested2.B Array(UInt64)
|
||||
CounterID UInt32
|
||||
StartDate Date
|
||||
UserID UInt32
|
||||
VisitID UInt32
|
||||
Added0 String
|
||||
Added1 UInt32
|
||||
Added2 UInt32
|
||||
AddedNested1.A Array(UInt32)
|
||||
AddedNested1.C Array(String)
|
||||
AddedNested2.A Array(UInt32)
|
||||
AddedNested2.B Array(UInt64)
|
||||
|
@ -1,39 +0,0 @@
|
||||
DROP DATABASE IF EXISTS rdbtest;
|
||||
DROP DATABASE IF EXISTS replicatwo;
|
||||
DROP DATABASE IF EXISTS replicathree;
|
||||
|
||||
CREATE DATABASE rdbtest ENGINE = Replicated('/clickhouse/db/test1/', 'id1');
|
||||
CREATE DATABASE replicatwo ENGINE = Replicated('/clickhouse/db/test1/', 'id2');
|
||||
CREATE DATABASE replicathree ENGINE = Replicated('/clickhouse/db/test1/', 'id3');
|
||||
|
||||
USE rdbtest;
|
||||
|
||||
CREATE TABLE alter_test (CounterID UInt32, StartDate Date, UserID UInt32, VisitID UInt32, NestedColumn Nested(A UInt8, S String), ToDrop UInt32) ENGINE = MergeTree(StartDate, intHash32(UserID), (CounterID, StartDate, intHash32(UserID), VisitID), 8192);
|
||||
|
||||
ALTER TABLE alter_test ADD COLUMN Added0 UInt32;
|
||||
ALTER TABLE alter_test ADD COLUMN Added2 UInt32;
|
||||
ALTER TABLE alter_test ADD COLUMN Added1 UInt32 AFTER Added0;
|
||||
|
||||
ALTER TABLE alter_test ADD COLUMN AddedNested1 Nested(A UInt32, B UInt64) AFTER Added2;
|
||||
ALTER TABLE alter_test ADD COLUMN AddedNested1.C Array(String) AFTER AddedNested1.B;
|
||||
ALTER TABLE alter_test ADD COLUMN AddedNested2 Nested(A UInt32, B UInt64) AFTER AddedNested1;
|
||||
|
||||
ALTER TABLE alter_test DROP COLUMN ToDrop;
|
||||
|
||||
ALTER TABLE alter_test MODIFY COLUMN Added0 String;
|
||||
|
||||
ALTER TABLE alter_test DROP COLUMN NestedColumn.A;
|
||||
ALTER TABLE alter_test DROP COLUMN NestedColumn.S;
|
||||
|
||||
ALTER TABLE alter_test DROP COLUMN AddedNested1.B;
|
||||
|
||||
ALTER TABLE alter_test ADD COLUMN IF NOT EXISTS Added0 UInt32;
|
||||
ALTER TABLE alter_test ADD COLUMN IF NOT EXISTS AddedNested1 Nested(A UInt32, B UInt64);
|
||||
ALTER TABLE alter_test ADD COLUMN IF NOT EXISTS AddedNested1.C Array(String);
|
||||
ALTER TABLE alter_test MODIFY COLUMN IF EXISTS ToDrop UInt64;
|
||||
ALTER TABLE alter_test DROP COLUMN IF EXISTS ToDrop;
|
||||
ALTER TABLE alter_test COMMENT COLUMN IF EXISTS ToDrop 'new comment';
|
||||
|
||||
DESC TABLE rdbtest.alter_test;
|
||||
DESC TABLE replicatwo.alter_test;
|
||||
DESC TABLE replicathree.alter_test;
|
Loading…
Reference in New Issue
Block a user