ClickHouse/tests/queries/0_stateless/00712_prewhere_with_missing_columns_2.sql

13 lines
357 B
MySQL
Raw Normal View History

drop table if exists t_00712_1;
create table t_00712_1 (a Int32, b Int32) engine = MergeTree partition by (a,b) order by (a);
2018-10-04 18:18:04 +00:00
insert into t_00712_1 values (1, 1);
alter table t_00712_1 add column c Int32;
2018-10-04 18:18:04 +00:00
select b from t_00712_1 prewhere a < 1000;
select c from t_00712_1 where a < 1000;
select c from t_00712_1 prewhere a < 1000;
2018-10-04 18:18:04 +00:00
drop table t_00712_1;
2018-10-04 18:18:04 +00:00