ClickHouse/tests/queries/0_stateless/02132_empty_mutation_livelock.sql

13 lines
362 B
MySQL
Raw Normal View History

2021-12-07 16:50:57 +00:00
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;