From ab96e1d581543e83c1629382140dc1d186e81267 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Sun, 5 Aug 2018 07:06:49 +0300 Subject: [PATCH] Imported test from #2094 --- dbms/tests/queries/0_stateless/00098_1_union_all.reference | 2 ++ dbms/tests/queries/0_stateless/00098_1_union_all.sql | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/dbms/tests/queries/0_stateless/00098_1_union_all.reference b/dbms/tests/queries/0_stateless/00098_1_union_all.reference index 8fc0e85e8fb..5927fc33d20 100644 --- a/dbms/tests/queries/0_stateless/00098_1_union_all.reference +++ b/dbms/tests/queries/0_stateless/00098_1_union_all.reference @@ -1,2 +1,4 @@ 1000 2000 +1000 Alice +2000 Alice diff --git a/dbms/tests/queries/0_stateless/00098_1_union_all.sql b/dbms/tests/queries/0_stateless/00098_1_union_all.sql index 7c05af6de98..6f96b710985 100644 --- a/dbms/tests/queries/0_stateless/00098_1_union_all.sql +++ b/dbms/tests/queries/0_stateless/00098_1_union_all.sql @@ -23,3 +23,9 @@ UNION ALL SELECT value AS val FROM data2014 WHERE name = 'Alice') ORDER BY val ASC; +SELECT val, name FROM +(SELECT value AS val, value AS val_1, name FROM data2013 WHERE name = 'Alice' +UNION ALL +SELECT value AS val, value, name FROM data2014 WHERE name = 'Alice') +ORDER BY val ASC; +