mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Added test for low cardinality with prewhere. #2896
This commit is contained in:
parent
b165a53e30
commit
409d68b8c0
@ -0,0 +1 @@
|
||||
2282004189 2282004189
|
@ -0,0 +1,6 @@
|
||||
set allow_experimental_low_cardinality_type = 1;
|
||||
drop table if exists test.lc_prewhere;
|
||||
create table test.lc_prewhere (key UInt64, val UInt64, str StringWithDictionary, s String) engine = MergeTree order by key settings index_granularity = 8192;
|
||||
insert into test.lc_prewhere select number, if(number < 10 or number > 8192 * 9, 1, 0), toString(number) as s, s from system.numbers limit 100000;
|
||||
select sum(toUInt64(str)), sum(toUInt64(s)) from test.lc_prewhere prewhere val == 1;
|
||||
drop table if exists test.lc_prewhere;
|
Loading…
Reference in New Issue
Block a user