Skip to content

Commit

Permalink
Do not show join with filter function as CrossJoin
Browse files Browse the repository at this point in the history
  • Loading branch information
losipiuk authored and erichwang committed Dec 2, 2016
1 parent 93954e7 commit 18352b6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ public Void visitJoin(JoinNode node, Integer indent)
node.getFilter().ifPresent(expression -> joinExpressions.add(expression));

// Check if the node is actually a cross join node
if (node.getType() == JoinNode.Type.INNER && node.getCriteria().isEmpty()) {
if (node.getType() == JoinNode.Type.INNER && joinExpressions.isEmpty()) {
print(indent, "- CrossJoin => [%s]", formatOutputs(node.getOutputSymbols()));
}
else {
Expand Down

0 comments on commit 18352b6

Please sign in to comment.