mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-11 17:02:25 +00:00
Add a test with optimized columns from PREWHERE
This commit is contained in:
parent
aae30a9e37
commit
874f7a5052
@ -0,0 +1,7 @@
|
||||
-- { echoOn }
|
||||
select * from data_02021 prewhere 1 or ignore(key);
|
||||
1
|
||||
select * from data_02021 prewhere 1 or ignore(key) where key = 1;
|
||||
1
|
||||
select * from data_02021 prewhere 0 or ignore(key);
|
||||
select * from data_02021 prewhere 0 or ignore(key) where key = 1;
|
@ -0,0 +1,10 @@
|
||||
drop table if exists data_02021;
|
||||
create table data_02021 (key Int) engine=MergeTree() order by key;
|
||||
insert into data_02021 values (1);
|
||||
-- { echoOn }
|
||||
select * from data_02021 prewhere 1 or ignore(key);
|
||||
select * from data_02021 prewhere 1 or ignore(key) where key = 1;
|
||||
select * from data_02021 prewhere 0 or ignore(key);
|
||||
select * from data_02021 prewhere 0 or ignore(key) where key = 1;
|
||||
-- { echoOff }
|
||||
drop table data_02021;
|
Loading…
Reference in New Issue
Block a user