mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 02:41:59 +00:00
17 lines
346 B
SQL
17 lines
346 B
SQL
SELECT nested(['a', 'b'], [1, 2], materialize([3, 4]));
|
|
|
|
DROP TABLE IF EXISTS test;
|
|
CREATE TABLE test
|
|
(
|
|
x UInt8,
|
|
“struct.x” DEFAULT [0],
|
|
“struct.y” ALIAS [1],
|
|
)
|
|
ENGINE = Memory;
|
|
|
|
insert into test (x) values (0);
|
|
select * from test array join struct;
|
|
select x, struct.x, struct.y from test array join struct;
|
|
|
|
DROP TABLE test;
|