ClickHouse/tests/queries/0_stateless/00591_columns_removal_union_all.sql

5 lines
192 B
MySQL
Raw Normal View History

2018-03-01 08:07:46 +00:00
SELECT * FROM
(
SELECT x FROM (SELECT x, y, arrayJoin(z) FROM (SELECT number AS x, number + 1 AS y, [number % 2, number % 3] AS z FROM numbers(10)) UNION ALL SELECT 1, 2, 3)
) ORDER BY x;