ClickHouse/dbms/tests/queries/0_stateless/00494_alias_substitution_bug.sql
2017-08-16 23:10:25 +03:00

6 lines
229 B
SQL

DROP TABLE IF EXISTS test.nested;
CREATE TABLE test.nested (n Nested(x UInt8)) ENGINE = Memory;
INSERT INTO test.nested VALUES ([1, 2]);
SELECT 1 AS x FROM remote('127.0.0.1', test.nested) ARRAY JOIN n.x;
DROP TABLE test.nested;