ClickHouse/tests/queries/0_stateless/02132_empty_mutation_livelock.sql
Nikita Mikhaylov 76f91c2c6c Done
2021-12-07 16:50:57 +00:00

13 lines
362 B
SQL

drop table if exists a8x;
set empty_result_for_aggregation_by_empty_set=1;
create table a8x ENGINE = MergeTree ORDER BY tuple() settings min_bytes_for_wide_part=0 as SELECT number FROM system.numbers limit 100;
select count() from a8x;
set mutations_sync=1;
alter table a8x update number=0 WHERE number=-3;
select count() from a8x;
drop table if exists a8x;