mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Run queries in storage join twice (issue #16991)
This commit is contained in:
parent
776b682f28
commit
79214897de
@ -29,3 +29,34 @@ anti left
|
||||
3 a4
|
||||
anti right
|
||||
5 b6
|
||||
any left
|
||||
0 a1
|
||||
1 a2
|
||||
2 a3 b1
|
||||
3 a4
|
||||
4 a5 b3
|
||||
any inner
|
||||
2 a3 b1
|
||||
4 a5 b3
|
||||
any right
|
||||
2 a3 b1
|
||||
2 a3 b2
|
||||
4 a5 b3
|
||||
4 a5 b4
|
||||
4 a5 b5
|
||||
5 b6
|
||||
semi left
|
||||
2 a3 b1
|
||||
4 a5 b3
|
||||
semi right
|
||||
2 a3 b1
|
||||
2 a3 b2
|
||||
4 a5 b3
|
||||
4 a5 b4
|
||||
4 a5 b5
|
||||
anti left
|
||||
0 a1
|
||||
1 a2
|
||||
3 a4
|
||||
anti right
|
||||
5 b6
|
||||
|
@ -57,6 +57,29 @@ SELECT * FROM t1 ANTI LEFT JOIN anti_left_join j USING(x) ORDER BY x, str, s;
|
||||
SELECT 'anti right';
|
||||
SELECT * FROM t1 ANTI RIGHT JOIN anti_right_join j USING(x) ORDER BY x, str, s;
|
||||
|
||||
-- run queries once more time (issue #16991)
|
||||
|
||||
SELECT 'any left';
|
||||
SELECT * FROM t1 ANY LEFT JOIN any_left_join j USING(x) ORDER BY x, str, s;
|
||||
|
||||
SELECT 'any inner';
|
||||
SELECT * FROM t1 ANY INNER JOIN any_inner_join j USING(x) ORDER BY x, str, s;
|
||||
|
||||
SELECT 'any right';
|
||||
SELECT * FROM t1 ANY RIGHT JOIN any_right_join j USING(x) ORDER BY x, str, s;
|
||||
|
||||
SELECT 'semi left';
|
||||
SELECT * FROM t1 SEMI LEFT JOIN semi_left_join j USING(x) ORDER BY x, str, s;
|
||||
|
||||
SELECT 'semi right';
|
||||
SELECT * FROM t1 SEMI RIGHT JOIN semi_right_join j USING(x) ORDER BY x, str, s;
|
||||
|
||||
SELECT 'anti left';
|
||||
SELECT * FROM t1 ANTI LEFT JOIN anti_left_join j USING(x) ORDER BY x, str, s;
|
||||
|
||||
SELECT 'anti right';
|
||||
SELECT * FROM t1 ANTI RIGHT JOIN anti_right_join j USING(x) ORDER BY x, str, s;
|
||||
|
||||
DROP TABLE t1;
|
||||
|
||||
DROP TABLE any_left_join;
|
||||
|
Loading…
Reference in New Issue
Block a user