The new cost-based join optimizer with reordering support for non-inner joins

ClickHouse’s new exhaustive cost-based join optimizer safely reorders inner, outer, semi, and anti joins to find the cheapest valid plan.

Sources