mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 00:52:02 +00:00
Test case for altering to LowCardinality when data part is empty
This commit is contained in:
parent
1142c142c8
commit
5228f5f2eb
@ -0,0 +1,3 @@
|
|||||||
|
wait for delete to finish 0
|
||||||
|
still alive
|
||||||
|
100
|
11
dbms/tests/queries/0_stateless/01035_lc_empty_part_bug.sql
Normal file
11
dbms/tests/queries/0_stateless/01035_lc_empty_part_bug.sql
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
-- that test is failing on versions <= 19.11.12
|
||||||
|
DROP TABLE IF EXISTS lc_empty_part_bug;
|
||||||
|
create table lc_empty_part_bug (id UInt64, s String) Engine=MergeTree ORDER BY id;
|
||||||
|
insert into lc_empty_part_bug select number as id, toString(rand()) from numbers(100);
|
||||||
|
alter table lc_empty_part_bug delete where id < 100;
|
||||||
|
SELECT 'wait for delete to finish', sleep(1);
|
||||||
|
alter table lc_empty_part_bug modify column s LowCardinality(String);
|
||||||
|
SELECT 'still alive';
|
||||||
|
insert into lc_empty_part_bug select number+100 as id, toString(rand()) from numbers(100);
|
||||||
|
SELECT count() FROM lc_empty_part_bug WHERE not ignore(*);
|
||||||
|
DROP TABLE IF EXISTS lc_empty_part_bug;
|
Loading…
Reference in New Issue
Block a user