ClickHouse/tests/queries/0_stateless/02227_union_match_by_name.sql
2023-03-11 11:51:54 +01:00

9 lines
304 B
SQL

SET allow_experimental_analyzer = 1;
-- { echoOn }
EXPLAIN header = 1, optimize = 0 SELECT avgWeighted(x, y) FROM (SELECT NULL, 255 AS x, 1 AS y UNION ALL SELECT y, NULL AS x, 1 AS y);
SELECT avgWeighted(x, y) FROM (SELECT NULL, 255 AS x, 1 AS y UNION ALL SELECT y, NULL AS x, 1 AS y);
-- { echoOff }