I am joining two tables that are not bucketed. In the subquery, the data is clustered by join key. Does this help improving performance of the query compared joined without cluster by
select
a.user_key,b.user_key
from
(select user_key from
table1
cluster by user_key) a
left join
(select user_key from
table2
cluster by user_key) b on a.user_key=b.user_key