ClickHouse/tests/queries/0_stateless/03033_set_index_in.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

5 lines
447 B
MySQL
Raw Normal View History

2024-03-29 04:43:57 +00:00
create table a (k UInt64, v UInt64, index i (v) type set(100) granularity 2) engine MergeTree order by k settings index_granularity=8192, index_granularity_bytes=1000000000, min_index_granularity_bytes=0;
insert into a select number, intDiv(number, 4096) from numbers(1000000);
select sum(1+ignore(*)) from a where indexHint(v in (20, 40));
select sum(1+ignore(*)) from a where indexHint(v in (select 20 union all select 40 union all select 60));