Added test for prewhere with virtual column. [#CLICKHOUSE-3965]

This commit is contained in:
Nikolai Kochetov 2018-09-07 11:11:48 +03:00
parent 476ff57528
commit 8200827723
2 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,5 @@
drop table if exists test.tab;
create table test.tab (a UInt32, b UInt32 alias a + 1, c UInt32) engine = MergeTree order by tuple();
insert into test.tab values (1, 2);
select ignore(_part) from test.tab prewhere b = 2;