Added test with prewhere and sampling. [#CLICKHOUSE-3969]

This commit is contained in:
Nikolai Kochetov 2018-09-07 19:11:15 +03:00
parent 6e41be3476
commit 3d06fc4217
2 changed files with 7 additions and 0 deletions

View File

@ -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;