This commit is contained in:
chertus 2020-02-19 16:10:03 +03:00
parent 3348697128
commit 1c297412d4
2 changed files with 15 additions and 2 deletions

View File

@ -10,3 +10,7 @@
1 0 1 0
2 11 2 11
3 0 3 0
0 10
1 0
2 11
3 0

View File

@ -1,4 +1,4 @@
SET partial_merge_join = 0; SET join_algorithm = 'hash';
SELECT number as n, j FROM numbers(4) SELECT number as n, j FROM numbers(4)
ANY LEFT JOIN ( ANY LEFT JOIN (
@ -16,7 +16,7 @@ ANY LEFT JOIN (
) js2 ) js2
USING n; -- { serverError 191 } USING n; -- { serverError 191 }
SET partial_merge_join = 1; SET join_algorithm = 'partial_merge';
SELECT number as n, j FROM numbers(4) SELECT number as n, j FROM numbers(4)
ANY LEFT JOIN ( ANY LEFT JOIN (
@ -33,3 +33,12 @@ ANY LEFT JOIN (
FROM numbers(4000) FROM numbers(4000)
) js2 ) js2
USING n; USING n;
SET join_algorithm = 'auto';
SELECT number as n, j FROM numbers(4)
ANY LEFT JOIN (
SELECT number * 2 AS n, number + 10 AS j
FROM numbers(4000)
) js2
USING n;