diff --git a/dbms/tests/queries/0_stateless/00120_join_and_group_by.reference b/dbms/tests/queries/0_stateless/00120_join_and_group_by.reference new file mode 100644 index 00000000000..417dbb5b661 --- /dev/null +++ b/dbms/tests/queries/0_stateless/00120_join_and_group_by.reference @@ -0,0 +1,11 @@ +0 +7766709361750702608 3902320246 4 +10577349846663553072 1343103100 1 +11700034558374135620 1618865725 8 +18198135717204167749 1996614413 2 +4761183170873013810 4249604106 0 +12742043333840853032 1295823179 6 +9624464864560415994 1298551497 3 +4416930539393268817 1241149650 9 +15228578409069794350 2641603337 5 +13365811232860260488 3844986530 7 diff --git a/dbms/tests/queries/0_stateless/00120_join_and_group_by.sql b/dbms/tests/queries/0_stateless/00120_join_and_group_by.sql new file mode 100644 index 00000000000..c3bf3520b54 --- /dev/null +++ b/dbms/tests/queries/0_stateless/00120_join_and_group_by.sql @@ -0,0 +1,2 @@ +SELECT value ANY LEFT JOIN (SELECT dummy, dummy AS value) USING dummy GROUP BY value; +SELECT value1, value2, sum(number) FROM (SELECT number, intHash64(number) AS value1 FROM system.numbers LIMIT 10) ANY LEFT JOIN (SELECT number, intHash32(number) AS value2 FROM system.numbers LIMIT 10) USING number GROUP BY value1, value2;