mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 19:12:03 +00:00
11 lines
315 B
SQL
11 lines
315 B
SQL
-- Tags: no-random-merge-tree-settings
|
|
|
|
set max_threads = 16;
|
|
|
|
create table t(a UInt32) engine=MergeTree order by tuple() partition by a % 16;
|
|
|
|
insert into t select * from numbers_mt(1e6);
|
|
|
|
set allow_aggregate_partitions_independently=1, force_aggregate_partitions_independently=1;
|
|
select count(distinct a) from t;
|