2019-04-16 14:13:13 +00:00
|
|
|
DROP TABLE IF EXISTS nested;
|
|
|
|
CREATE TABLE nested (nest Nested(x UInt8, y UInt8)) ENGINE = Memory;
|
|
|
|
INSERT INTO nested VALUES ([1, 2, 3], [4, 5, 6]);
|
2017-06-21 18:24:25 +00:00
|
|
|
|
2019-04-16 14:13:13 +00:00
|
|
|
SELECT nx FROM nested ARRAY JOIN nest.x AS nx, nest.y AS ny WHERE notEmpty(nest.y);
|
|
|
|
SELECT 1 FROM nested ARRAY JOIN nest.x AS nx, nest.y AS ny WHERE notEmpty(nest.y);
|
|
|
|
SELECT nx, ny FROM nested ARRAY JOIN nest.x AS nx, nest.y AS ny WHERE notEmpty(nest.y);
|
|
|
|
SELECT nx FROM nested ARRAY JOIN nest.x AS nx, nest.y AS ny WHERE notEmpty(nest.x);
|
|
|
|
SELECT nx, nest.y FROM nested ARRAY JOIN nest.x AS nx, nest.y AS ny;
|
|
|
|
SELECT nx, ny, nest.x, nest.y FROM nested ARRAY JOIN nest.x AS nx, nest.y AS ny;
|
2017-06-21 18:24:25 +00:00
|
|
|
|
2019-04-16 14:13:13 +00:00
|
|
|
DROP TABLE nested;
|