Clickhouse: How is join implemented in ClickHouse ?

Created on 15 Jul 2019  路  3Comments  路  Source: ClickHouse/ClickHouse

How is Join implemented in ClickHouse ?

There is a Join.cpp file under interpreters directory, but it looks like all the join operator implementation details is just insert data into blocks. Where is the major algorithmic procedure for join there ?

Best Regards,
Hao

comp-joins question

All 3 comments

Right side of JOIN is collected into hash table in memory.
Then while reading from left side of JOIN we'll do lookups in hash table and find rows to be joined.

Normally in RDBMS optimizers take care of the JOIN order (Left, Right). In the case of ClickHouse, tables with low selectivity at the right side of the JOIN should be preferred and performance will be significantly better.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

innerr picture innerr  路  3Comments

jangorecki picture jangorecki  路  3Comments

goranc picture goranc  路  3Comments

atk91 picture atk91  路  3Comments

fizerkhan picture fizerkhan  路  3Comments