mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
More test cases for Distibuted-on-Distributed (LEFT JOIN/RIGHT JOIN)
This commit is contained in:
parent
63e86bcfc4
commit
fe3b068d22
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user