mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 10:52:30 +00:00
25 lines
970 B
Bash
Executable File
25 lines
970 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|
# shellcheck source=../shell_config.sh
|
|
. "$CURDIR"/../shell_config.sh
|
|
|
|
# that test is failing on versions <= 19.11.12
|
|
|
|
${CLICKHOUSE_CLIENT} --query="
|
|
DROP TABLE IF EXISTS lc_empty_part_bug;
|
|
create table lc_empty_part_bug (id UInt64, s String) Engine=MergeTree ORDER BY id SETTINGS number_of_free_entries_in_pool_to_execute_mutation=0;
|
|
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;
|
|
" --mutations_sync=1
|
|
|
|
echo 'Waited for mutation to finish'
|
|
|
|
${CLICKHOUSE_CLIENT} --query="
|
|
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 lc_empty_part_bug;
|
|
" --mutations_sync=1
|