ClickHouse/tests/queries/0_stateless/00712_prewhere_with_alias_and_virtual_column.sql
Ivan 97f2a2213e
Move all folders inside /dbms one level up (#9974)
* Move some code outside dbms/src folder
* Fix paths
2020-04-02 02:51:21 +03:00

6 lines
256 B
SQL

drop table if exists tab_00712_1;
create table tab_00712_1 (a UInt32, b UInt32 alias a + 1, c UInt32) engine = MergeTree order by tuple();
insert into tab_00712_1 values (1, 2);
select ignore(_part) from tab_00712_1 prewhere b = 2;
drop table tab_00712_1;