Skip to content

Commit

Permalink
Remove unused SemiJoinNode
Browse files Browse the repository at this point in the history
  • Loading branch information
kasiafi authored and sopel39 committed Jun 4, 2020
1 parent e931227 commit 72474b9
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,10 @@ public PlanNode visitJoin(JoinNode node, RewriteContext<Set<Symbol>> context)
@Override
public PlanNode visitSemiJoin(SemiJoinNode node, RewriteContext<Set<Symbol>> context)
{
if (!context.get().contains(node.getSemiJoinOutput())) {
return context.rewrite(node.getSource(), context.get());
}

ImmutableSet.Builder<Symbol> sourceInputsBuilder = ImmutableSet.builder();
sourceInputsBuilder.addAll(context.get()).add(node.getSourceJoinSymbol());
if (node.getSourceHashSymbol().isPresent()) {
Expand Down

0 comments on commit 72474b9

Please sign in to comment.