mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
Add sorting to fix test.
This commit is contained in:
parent
fe1056579f
commit
d0debd51c0
@ -21,14 +21,14 @@ SELECT s1.other, s2.other, count_a, count_b, toTypeName(s1.other), toTypeName(s2
|
|||||||
ALL FULL JOIN
|
ALL FULL JOIN
|
||||||
( SELECT other, count() AS count_b FROM table_b GROUP BY other ) s2
|
( SELECT other, count() AS count_b FROM table_b GROUP BY other ) s2
|
||||||
ON s1.other = s2.other
|
ON s1.other = s2.other
|
||||||
ORDER BY s2.other DESC;
|
ORDER BY s2.other DESC, count_a;
|
||||||
|
|
||||||
SELECT s1.other, s2.other, count_a, count_b, toTypeName(s1.other), toTypeName(s2.other) FROM
|
SELECT s1.other, s2.other, count_a, count_b, toTypeName(s1.other), toTypeName(s2.other) FROM
|
||||||
( SELECT other, count() AS count_a FROM table_a GROUP BY other ) s1
|
( SELECT other, count() AS count_a FROM table_a GROUP BY other ) s1
|
||||||
ALL FULL JOIN
|
ALL FULL JOIN
|
||||||
( SELECT other, count() AS count_b FROM table_b GROUP BY other ) s2
|
( SELECT other, count() AS count_b FROM table_b GROUP BY other ) s2
|
||||||
USING other
|
USING other
|
||||||
ORDER BY s2.other DESC;
|
ORDER BY s2.other DESC, count_a;
|
||||||
|
|
||||||
SELECT s1.something, s2.something, count_a, count_b, toTypeName(s1.something), toTypeName(s2.something) FROM
|
SELECT s1.something, s2.something, count_a, count_b, toTypeName(s1.something), toTypeName(s2.something) FROM
|
||||||
( SELECT something, count() AS count_a FROM table_a GROUP BY something ) s1
|
( SELECT something, count() AS count_a FROM table_a GROUP BY something ) s1
|
||||||
|
Loading…
Reference in New Issue
Block a user