ClickHouse/tests/queries/0_stateless/03047_analyzer_alias_join.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
365 B
MySQL
Raw Normal View History

2024-07-12 12:49:26 +00:00
SET enable_analyzer=1;
SELECT
1 AS value,
*
FROM
(
SELECT 1 AS key
) AS l
LEFT JOIN
(
SELECT
2 AS key,
1 AS value
) AS r USING (key)
SETTINGS join_use_nulls = 1;
SELECT
1 AS value,
*
FROM
(
SELECT 2 AS key
) AS l
LEFT JOIN
(
SELECT
2 AS key,
1 AS value
) AS r USING (key)
SETTINGS join_use_nulls = 1