You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
v23.3 right join and full out join result set is incorrect #56005
comp-distributedDistributed table engine & query routing across shards (sharding/load balancing).externalAuthor is not a member of the ClickHouse organizationunexpected behaviourResult is unexpected, but not entirely wrong at the same time.
Describe the unexpected behaviour
When I used right join, I noticed that it didn't get the same result as left join
How to reproduce
Which ClickHouse server version to use
v23.3.13.6-lts
CREATE TABLE statements for all tables involved create table t (ID String) Engine= Memory() ; insert into t values('a'),('b'),('c'); create table s (IDS String) Engine= Memory() ; insert into s values('a'),('b'),('d');
Queries to run that lead to unexpected result
SELECT * FROM remote('127.0.0.{1,2}', default, t) as t right JOIN remote('127.0.0.{1,2}', default, s) as s ON t.ID=s.IDS;
SELECT * FROM remote('127.0.0.{1,2}', default, s) as s left JOIN remote('127.0.0.{1,2}', default, t) as t on t.ID=s.IDS
Expected behavior
The results of the two SQL statements should be the same. In fact, the number of right join data increases.
comp-distributedDistributed table engine & query routing across shards (sharding/load balancing).externalAuthor is not a member of the ClickHouse organizationunexpected behaviourResult is unexpected, but not entirely wrong at the same time.
Activity
h1k commentedon Nov 9, 2023
right join have a lot more data than equivalent left join,anyone could help ?