dbms: added test for JOIN [#METR-14847].

This commit is contained in:
Alexey Milovidov 2015-01-31 00:22:55 +03:00
parent 6ffae48988
commit fd0cd56609
2 changed files with 13 additions and 0 deletions

View File

@ -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

View File

@ -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;