ClickHouse/tests/queries/0_stateless/02880_indexHint__partition_id.sql
Azat Khuzhin d9a634eb0f Fix filtering parts with indexHint for non analyzer
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
(cherry picked from commit ffa82e9297)
2023-09-20 11:29:35 +02:00

10 lines
404 B
SQL

drop table if exists data;
create table data (part Int) engine=MergeTree() order by tuple() partition by part;
insert into data values (1)(2);
-- { echoOn }
select * from data prewhere indexHint(_partition_id = '1');
select count() from data prewhere indexHint(_partition_id = '1');
select * from data where indexHint(_partition_id = '1');
select count() from data where indexHint(_partition_id = '1');