mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Added test for low cardinality with in function. #3004
This commit is contained in:
parent
d2fbc3df58
commit
19d00cde7e
@ -0,0 +1,12 @@
|
||||
a 1
|
||||
b 0
|
||||
1 1
|
||||
2 0
|
||||
a 1
|
||||
b 0
|
||||
1 1
|
||||
2 0
|
||||
a 1
|
||||
b 1
|
||||
1 1
|
||||
2 1
|
12
dbms/tests/queries/0_stateless/00688_low_cardinality_in.sql
Normal file
12
dbms/tests/queries/0_stateless/00688_low_cardinality_in.sql
Normal file
@ -0,0 +1,12 @@
|
||||
set allow_experimental_low_cardinality_type = 1;
|
||||
|
||||
drop table if exists test.lc;
|
||||
create table test.lc (str StringWithDictionary, val UInt8WithDictionary) engine = MergeTree order by tuple();
|
||||
insert into test.lc values ('a', 1), ('b', 2);
|
||||
select str, str in ('a', 'd') from test.lc;
|
||||
select val, val in (1, 3) from test.lc;
|
||||
select str, str in (select arrayJoin(['a', 'd'])) from test.lc;
|
||||
select val, val in (select arrayJoin([1, 3])) from test.lc;
|
||||
select str, str in (select str from test.lc) from test.lc;
|
||||
select val, val in (select val from test.lc) from test.lc;
|
||||
drop table if exists test.lc;
|
Loading…
Reference in New Issue
Block a user