From 4ab04c8b06e7beb410f022d2263f0b4c200fa48d Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Thu, 3 Jul 2014 00:26:34 +0400 Subject: [PATCH] dbms: JOINs: test for aliases [#METR-11370]. --- .../queries/0_stateless/00057_join_aliases.reference | 10 ++++++++++ dbms/tests/queries/0_stateless/00057_join_aliases.sql | 1 + 2 files changed, 11 insertions(+) create mode 100644 dbms/tests/queries/0_stateless/00057_join_aliases.reference create mode 100644 dbms/tests/queries/0_stateless/00057_join_aliases.sql 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