update tests

This commit is contained in:
Dmitry Novik 2021-08-24 01:00:41 +03:00
parent e78f9b3d4b
commit d5b116b2da
7 changed files with 10 additions and 8 deletions

View File

@ -1,4 +1,4 @@
one one
one
two two
one
two two

View File

@ -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'); insert into enum_alter_issue values ('one'), ('two');
alter table enum_alter_issue detach partition id 'all'; alter table enum_alter_issue detach partition id 'all';
alter table enum_alter_issue attach 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; drop table enum_alter_issue;

View File

@ -0,0 +1,4 @@
one 1
two 2
one 3
two 4

View File

@ -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') engine = ReplicatedMergeTree('/clickhouse/tables/{database}/test_02012/enum_alter_issue', 'r1')
ORDER BY a; 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); 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 detach partition id 'all';
alter table enum_alter_issue attach 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; drop table enum_alter_issue;