ClickHouse/tests/queries/0_stateless/02965_projection_with_partition_pruning.sql

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

10 lines
306 B
MySQL
Raw Normal View History

2024-01-09 19:13:03 +00:00
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;