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
Here the above "semi join" can be transformed to an "inner join":
This transform is logically equivalent, they can result different physical plans.
In some scenarios, table "t1" has an index on column "t1.a", the transformed "InnerJoin" can be implemented by a "IndexJoin", which uses the result of the "Aggregate" as the outer rows to build the index ranges on "t1.a", directly extract the matched rows on table "t1". That is to say: the physical plan of the later one can be more efficient than the former one.
The text was updated successfully, but these errors were encountered:
Take this query as an example:
The plan for this query can be:
Here the above "semi join" can be transformed to an "inner join":
This transform is logically equivalent, they can result different physical plans.
In some scenarios, table "t1" has an index on column "t1.a", the transformed "InnerJoin" can be implemented by a "IndexJoin", which uses the result of the "Aggregate" as the outer rows to build the index ranges on "t1.a", directly extract the matched rows on table "t1". That is to say: the physical plan of the later one can be more efficient than the former one.
The text was updated successfully, but these errors were encountered: