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
Summary
Right outer join will be transferred to left outer join in the binder phase.
So there is only left outer join in the executor phase.
For some cases, we need to change left outer join to right outer join, then make the smaller table as the build side.
Such as tpch q13.
select
c_count,
count(*) as custdist
from
(
select
c_custkey,
count(o_orderkey) as c_count
from
customer
left outer join
orders
on c_custkey = o_custkey
and o_comment not like'%pending%deposits%'group by
c_custkey
)
c_orders
group by
c_count
order by
custdist desc,
c_count desc;
The text was updated successfully, but these errors were encountered:
Summary
Right outer join will be transferred to left outer join in the binder phase.
So there is only left outer join in the executor phase.
For some cases, we need to change left outer join to right outer join, then make the smaller table as the build side.
Such as tpch q13.
The text was updated successfully, but these errors were encountered: