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
createtablet1 (id int);
createtablet2 (id int);
createtablet3 (id int);
commit;
set plan;
select*from t1, t2, t3
wheret1.id=t2.idandt2.id=t3.id;
-- PLAN HASH (T1 NATURAL, T2 NATURAL, T3 NATURAL)
i.e. all three streams are joined in one pass.
Now let's replace joined fields with expressions:
select*from t1, t2, t3
wheret1.id+0=t2.id+0andt2.id+0=t3.id+0;
-- PLAN HASH (HASH (T1 NATURAL, T2 NATURAL), T3 NATURAL)
i.e. two joins are used instead of one.
The text was updated successfully, but these errors were encountered:
Consider example:
i.e. all three streams are joined in one pass.
Now let's replace joined fields with expressions:
i.e. two joins are used instead of one.
The text was updated successfully, but these errors were encountered: