2019-05-29 16:37:55 +00:00
|
|
|
set allow_suspicious_low_cardinality_types = 1;
|
2019-04-18 18:48:04 +00:00
|
|
|
drop table if exists lc_00688;
|
2024-07-22 05:45:57 +00:00
|
|
|
create table lc_00688 (str LowCardinality(String), val LowCardinality(UInt8)) engine = MergeTree order by tuple();
|
2019-04-18 18:48:04 +00:00
|
|
|
insert into lc_00688 values ('a', 1), ('b', 2);
|
|
|
|
select str, str in ('a', 'd') from lc_00688;
|
|
|
|
select val, val in (1, 3) from lc_00688;
|
|
|
|
select str, str in (select arrayJoin(['a', 'd'])) from lc_00688;
|
|
|
|
select val, val in (select arrayJoin([1, 3])) from lc_00688;
|
|
|
|
select str, str in (select str from lc_00688) from lc_00688;
|
|
|
|
select val, val in (select val from lc_00688) from lc_00688;
|
|
|
|
drop table if exists lc_00688;
|
2019-10-17 10:08:36 +00:00
|
|
|
|
|
|
|
drop table if exists ary_lc_null;
|
|
|
|
CREATE TABLE ary_lc_null (i int, v Array(LowCardinality(Nullable(String)))) ENGINE = MergeTree() ORDER BY i ;
|
|
|
|
INSERT INTO ary_lc_null VALUES (1, ['1']);
|
|
|
|
SELECT v FROM ary_lc_null WHERE v IN (SELECT v FROM ary_lc_null);
|
|
|
|
drop table if exists ary_lc_null;
|