Modified test [#CLICKHOUSE-2838].

This commit is contained in:
Alexey Milovidov 2017-08-18 23:11:09 +03:00
parent e01c23267a
commit cb67224b4f
6 changed files with 27 additions and 25 deletions

View File

@ -1,11 +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)

View File

@ -1,10 +0,0 @@
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;
DESC TABLE alter_test;

View File

@ -1 +0,0 @@
1 2014-01-01 2 3 0 0 [] [] [] []

View File

@ -1,3 +0,0 @@
SELECT * FROM alter_test;
DROP TABLE alter_test;

View File

@ -13,3 +13,15 @@ AddedNested1.B Array(UInt64)
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 2014-01-01 2 3 0 0 [] [] [] []

View File

@ -13,3 +13,18 @@ ALTER TABLE alter_test ADD COLUMN AddedNested1.C Array(String) AFTER AddedNested
ALTER TABLE alter_test ADD COLUMN AddedNested2 Nested(A UInt32, B UInt64) AFTER AddedNested1;
DESC TABLE alter_test;
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;
DESC TABLE alter_test;
SELECT * FROM alter_test;
DROP TABLE alter_test;