diff --git a/dbms/tests/queries/0_stateless/00592_union_all_different_aliases.reference b/dbms/tests/queries/0_stateless/00592_union_all_different_aliases.reference new file mode 100644 index 00000000000..98fb6a68656 --- /dev/null +++ b/dbms/tests/queries/0_stateless/00592_union_all_different_aliases.reference @@ -0,0 +1,4 @@ +1 +1 +1 +1 diff --git a/dbms/tests/queries/0_stateless/00592_union_all_different_aliases.sql b/dbms/tests/queries/0_stateless/00592_union_all_different_aliases.sql new file mode 100644 index 00000000000..0c837a5a4f5 --- /dev/null +++ b/dbms/tests/queries/0_stateless/00592_union_all_different_aliases.sql @@ -0,0 +1,7 @@ +SELECT 1 AS a +UNION ALL +SELECT 1 AS b; + +SELECT 1 AS a +UNION ALL +SELECT 1 AS a;