mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
clickhouse: updated test for alter [#METR-11063]
This commit is contained in:
parent
b336d8057c
commit
dd76cb7479
@ -8,3 +8,8 @@ ToDrop UInt32
|
||||
Added0 UInt32
|
||||
Added1 UInt32
|
||||
Added2 UInt32
|
||||
AddedNested1.A Array(UInt32)
|
||||
AddedNested1.B Array(UInt64)
|
||||
AddedNested1.C Array(String)
|
||||
AddedNested2.A Array(UInt32)
|
||||
AddedNested2.B Array(UInt64)
|
||||
|
@ -8,4 +8,8 @@ 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;
|
||||
|
||||
DESC TABLE alter_test;
|
||||
|
@ -5,3 +5,7 @@ VisitID UInt32
|
||||
Added0 String
|
||||
Added1 UInt32
|
||||
Added2 UInt32
|
||||
AddedNested1.A Array(UInt32)
|
||||
AddedNested1.C Array(String)
|
||||
AddedNested2.A Array(UInt32)
|
||||
AddedNested2.B Array(UInt64)
|
||||
|
@ -5,4 +5,6 @@ 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;
|
||||
|
@ -1 +1 @@
|
||||
1 2014-01-01 2 3 0 0
|
||||
1 2014-01-01 2 3 0 0 [] [] [] []
|
||||
|
Loading…
Reference in New Issue
Block a user