"select e1.ename from emp e1, dept d, emp e2 "
+ "where e1.deptno = d.deptno and d.deptno = e2.deptno");
}
@Test public void testRemoveSemiJoinRightWithFilter() throws Exception {
HepProgram program = new HepProgramBuilder()
.addRuleInstance(PushFilterPastJoinRule.FILTER_ON_JOIN)
.addRuleInstance(AddRedundantSemiJoinRule.INSTANCE)
.addRuleInstance(PushSemiJoinPastJoinRule.INSTANCE)
.addRuleInstance(PushSemiJoinPastFilterRule.INSTANCE)
.addRuleInstance(RemoveSemiJoinRule.INSTANCE)