Skip to content

Commit

Permalink
Simplify assertion in testJoinPushdownDisabled
Browse files Browse the repository at this point in the history
  • Loading branch information
findepi committed Nov 7, 2022
1 parent 2e702c0 commit ed8bc5b
Showing 1 changed file with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1125,15 +1125,10 @@ public void testJoinPushdownDisabled()
.setSystemProperty("optimize_hash_generation", "false")
.build();

PlanMatchPattern partitionedJoinOverTableScans = node(JoinNode.class,
exchange(ExchangeNode.Scope.REMOTE, ExchangeNode.Type.REPARTITION,
node(TableScanNode.class)),
exchange(ExchangeNode.Scope.LOCAL,
exchange(ExchangeNode.Scope.REMOTE, ExchangeNode.Type.REPARTITION,
node(TableScanNode.class))));

assertThat(query(noJoinPushdown, "SELECT r.name, n.name FROM nation n JOIN region r ON n.regionkey = r.regionkey"))
.isNotFullyPushedDown(partitionedJoinOverTableScans);
.isNotFullyPushedDown(node(JoinNode.class,
anyTree(node(TableScanNode.class)),
anyTree(node(TableScanNode.class))));
}

/**
Expand Down

0 comments on commit ed8bc5b

Please sign in to comment.