mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-12 09:22:05 +00:00
10 lines
306 B
SQL
10 lines
306 B
SQL
drop table if exists a;
|
|
|
|
create table a (i int, j int, projection p (select * order by j)) engine MergeTree partition by i order by tuple() settings index_granularity = 1;
|
|
|
|
insert into a values (1, 2), (0, 5), (3, 4);
|
|
|
|
select * from a where i > 0 and j = 4 settings force_index_by_date = 1;
|
|
|
|
drop table a;
|