mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
10 lines
428 B
SQL
10 lines
428 B
SQL
drop table if exists t;
|
|
|
|
create table t (x UInt32) engine = MergeTree order by tuple() settings index_granularity = 8;
|
|
insert into t select number from numbers(100);
|
|
alter table t add projection p (select uniqHLL12(x));
|
|
insert into t select number + 100 from numbers(100);
|
|
select uniqHLL12(x) from t settings optimize_use_projections = 1, max_bytes_to_read=400, max_block_size=8; -- { serverError 307 }
|
|
|
|
drop table if exists t;
|