ClickHouse/tests/queries/0_stateless/03268_nested_analyzer.sql
Alexey Milovidov 19ca58e952 Fix #71677
2024-11-09 02:30:10 +01:00

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;