2019-04-16 14:13:13 +00:00
|
|
|
DROP TABLE IF EXISTS set;
|
|
|
|
CREATE TABLE set (x String) ENGINE = Memory;
|
|
|
|
INSERT INTO set VALUES ('hello');
|
|
|
|
SELECT (arrayJoin(['hello', 'world']) AS s) IN set, s;
|
2017-07-14 01:00:29 +00:00
|
|
|
|
2019-04-16 14:13:13 +00:00
|
|
|
DROP TABLE set;
|
|
|
|
CREATE TABLE set (x String) ENGINE = Set;
|
|
|
|
INSERT INTO set VALUES ('hello');
|
|
|
|
SELECT (arrayJoin(['hello', 'world']) AS s) IN set, s;
|
2017-07-14 01:00:29 +00:00
|
|
|
|
2019-04-16 14:13:13 +00:00
|
|
|
DROP TABLE set;
|
2017-07-14 01:00:29 +00:00
|
|
|
|
2019-04-16 14:13:13 +00:00
|
|
|
DROP TABLE IF EXISTS join;
|
|
|
|
CREATE TABLE join (k UInt8, x String) ENGINE = Memory;
|
|
|
|
INSERT INTO join VALUES (1, 'hello');
|
2019-08-29 18:45:34 +00:00
|
|
|
SELECT k, x FROM (SELECT arrayJoin([1, 2]) AS k) js1 ANY LEFT JOIN join USING k;
|
2017-07-14 01:00:29 +00:00
|
|
|
|
2019-04-16 14:13:13 +00:00
|
|
|
DROP TABLE join;
|
|
|
|
CREATE TABLE join (k UInt8, x String) ENGINE = Join(ANY, LEFT, k);
|
|
|
|
INSERT INTO join VALUES (1, 'hello');
|
2019-08-29 18:45:34 +00:00
|
|
|
SELECT k, x FROM (SELECT arrayJoin([1, 2]) AS k) js1 ANY LEFT JOIN join USING k;
|
2017-07-14 01:00:29 +00:00
|
|
|
|
2019-04-16 14:13:13 +00:00
|
|
|
DROP TABLE join;
|