0

I don't care the order of the query result. From relational algebra point of view, these should be the same. The two queries give different results in Clickhouse.

Querys:

select count(*) from A left join B on A.product_id = B.product_id and A.date = B.date

got 20000 rows;

select count(*) from B right join A on A.product_id = B.product_id and A.date = B.date

gives 300000 rows instead.

Michael Entin
  • 7,189
  • 3
  • 21
  • 26

0 Answers0