mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Added test with prewhere and sampling. [#CLICKHOUSE-3969]
This commit is contained in:
parent
6e41be3476
commit
3d06fc4217
@ -0,0 +1 @@
|
||||
1
|
@ -0,0 +1,6 @@
|
||||
drop table if exists test.tab;
|
||||
create table test.tab (a UInt32, b UInt32) engine = MergeTree order by b % 2 sample by b % 2;
|
||||
insert into test.tab values (1, 2), (1, 4);
|
||||
select a from test.tab sample 1 / 2 prewhere b = 2;
|
||||
drop table if exists test.tab;
|
||||
|
Loading…
Reference in New Issue
Block a user