ClickHouse/tests/queries/0_stateless/01318_parallel_final_stuck.sql

6 lines
424 B
MySQL
Raw Normal View History

2020-06-15 12:04:30 +00:00
drop table if exists final_bug;
create table final_bug (x UInt64, y UInt8) engine = ReplacingMergeTree(y) order by x settings index_granularity = 8;
insert into final_bug select number % 10, 1 from numbers(1000);
insert into final_bug select number % 10, 1 from numbers(1000);
select x from final_bug final order by x settings max_threads=2, max_final_threads=2, max_block_size=8 format Null;
drop table if exists final_bug;