mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
update tests
This commit is contained in:
parent
e78f9b3d4b
commit
d5b116b2da
@ -1,2 +0,0 @@
|
||||
one
|
||||
two
|
@ -1,4 +1,4 @@
|
||||
one
|
||||
one
|
||||
two
|
||||
one
|
||||
two
|
||||
|
@ -4,5 +4,5 @@ alter table enum_alter_issue modify column a Enum8('one' = 1, 'two' = 2, 'three'
|
||||
insert into enum_alter_issue values ('one'), ('two');
|
||||
alter table enum_alter_issue detach partition id 'all';
|
||||
alter table enum_alter_issue attach partition id 'all';
|
||||
select * from enum_alter_issue;
|
||||
select * from enum_alter_issue order by a;
|
||||
drop table enum_alter_issue;
|
||||
|
@ -0,0 +1,4 @@
|
||||
one 1
|
||||
two 2
|
||||
one 3
|
||||
two 4
|
@ -1,13 +1,13 @@
|
||||
create table enum_alter_issue (a Enum8('one' = 1, 'two' = 2))
|
||||
create table enum_alter_issue (a Enum8('one' = 1, 'two' = 2), b Int)
|
||||
engine = ReplicatedMergeTree('/clickhouse/tables/{database}/test_02012/enum_alter_issue', 'r1')
|
||||
ORDER BY a;
|
||||
|
||||
insert into enum_alter_issue values ('one'), ('two');
|
||||
insert into enum_alter_issue values ('one', 1), ('two', 2);
|
||||
alter table enum_alter_issue modify column a Enum8('one' = 1, 'two' = 2, 'three' = 3);
|
||||
insert into enum_alter_issue values ('one'), ('two');
|
||||
insert into enum_alter_issue values ('one', 3), ('two', 4);
|
||||
|
||||
alter table enum_alter_issue detach partition id 'all';
|
||||
alter table enum_alter_issue attach partition id 'all';
|
||||
select * from enum_alter_issue;
|
||||
select * from enum_alter_issue order by b;
|
||||
|
||||
drop table enum_alter_issue;
|
Loading…
Reference in New Issue
Block a user