Run queries in storage join twice (issue #16991)

This commit is contained in:
vdimir 2021-02-09 10:33:17 +03:00
parent 776b682f28
commit 79214897de
No known key found for this signature in database
GPG Key ID: F57B3E10A21DBB31
2 changed files with 54 additions and 0 deletions

View File

@ -29,3 +29,34 @@ anti left
3 a4 3 a4
anti right anti right
5 b6 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

View File

@ -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 'anti right';
SELECT * FROM t1 ANTI RIGHT JOIN anti_right_join j USING(x) ORDER BY x, str, s; 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 t1;
DROP TABLE any_left_join; DROP TABLE any_left_join;