ClickHouse/dbms/tests/queries/0_stateless/00712_prewhere_with_alias_and_virtual_column.sql

6 lines
221 B
MySQL
Raw Normal View History

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;