From ccd2f915af3059f2a7ab82e5ad2e40598244d10a Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Tue, 29 Jun 2021 23:15:03 +0300 Subject: [PATCH] Add a test for #25611 --- .../queries/0_stateless/01926_union_all_schmak.reference | 2 ++ tests/queries/0_stateless/01926_union_all_schmak.sql | 8 ++++++++ 2 files changed, 10 insertions(+) create mode 100644 tests/queries/0_stateless/01926_union_all_schmak.reference create mode 100644 tests/queries/0_stateless/01926_union_all_schmak.sql diff --git a/tests/queries/0_stateless/01926_union_all_schmak.reference b/tests/queries/0_stateless/01926_union_all_schmak.reference new file mode 100644 index 00000000000..17d07eb79ef --- /dev/null +++ b/tests/queries/0_stateless/01926_union_all_schmak.reference @@ -0,0 +1,2 @@ +1 2 +3 4 diff --git a/tests/queries/0_stateless/01926_union_all_schmak.sql b/tests/queries/0_stateless/01926_union_all_schmak.sql new file mode 100644 index 00000000000..feab81ccac2 --- /dev/null +++ b/tests/queries/0_stateless/01926_union_all_schmak.sql @@ -0,0 +1,8 @@ +SELECT * FROM ( + SELECT 1 AS a, 2 AS b FROM system.one + JOIN system.one USING dummy + UNION ALL + SELECT 3 AS a, 4 AS b FROM system.one +) +WHERE a != 10 +ORDER BY a, b;