diff --git a/dbms/tests/queries/0_stateless/00057_join_aliases.reference b/dbms/tests/queries/0_stateless/00057_join_aliases.reference new file mode 100644 index 00000000000..aedcedebd44 --- /dev/null +++ b/dbms/tests/queries/0_stateless/00057_join_aliases.reference @@ -0,0 +1,10 @@ +0 0 0 Hello +1 0.5 0 Hello +2 1 3 Hello +3 1.5 0 Hello +4 2 6 Hello +5 2.5 0 Hello +6 3 9 Hello +7 3.5 0 Hello +8 4 0 Hello +9 4.5 0 Hello diff --git a/dbms/tests/queries/0_stateless/00057_join_aliases.sql b/dbms/tests/queries/0_stateless/00057_join_aliases.sql new file mode 100644 index 00000000000..c98de98f43c --- /dev/null +++ b/dbms/tests/queries/0_stateless/00057_join_aliases.sql @@ -0,0 +1 @@ +SELECT number, number / 2 AS n, j1, j2 FROM system.numbers ANY LEFT JOIN (SELECT number / 3 AS n, number AS j1, 'Hello' AS j2 FROM system.numbers LIMIT 10) USING n LIMIT 10