mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-03 21:12:28 +00:00
10 lines
404 B
MySQL
10 lines
404 B
MySQL
|
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');
|