More test cases for Distibuted-on-Distributed (LEFT JOIN/RIGHT JOIN)

This commit is contained in:
Azat Khuzhin 2020-03-29 21:58:59 +03:00
parent 63e86bcfc4
commit fe3b068d22
2 changed files with 12 additions and 0 deletions

View File

@ -63,3 +63,10 @@ cluster() GROUP BY ORDER BY
0
1
2
LEFT JOIN
0 0
1 1
RIGHT JOIN
0 0
1 1
0 2

View File

@ -26,6 +26,11 @@ select * from cluster(test_cluster_two_shards, currentDatabase(), dist_01223) or
select 'cluster() GROUP BY ORDER BY';
select * from cluster(test_cluster_two_shards, currentDatabase(), dist_01223) group by key order by key;
select 'LEFT JOIN';
select toInt32(number) key, b.key from numbers(2) a left join (select distinct * from dist_01223) b using key order by b.key;
select 'RIGHT JOIN';
select toInt32(number) key, b.key from numbers(2) a right join (select distinct * from dist_01223) b using key order by b.key;
drop table dist_01223;
drop table dist_layer_01223;
drop table data_01223;