@Test
public void testSubGraphIterator2()
{
RuleRegistry ruleRegistry = new RuleRegistry();
PlannerContext plannerContext = new PlannerContext( ruleRegistry );
ruleRegistry.addRule( new RemoveNoOpPipeTransformer() );
FlowElementGraph elementGraph = new HashJoinMergeIntoHashJoinStreamedStreamedMergeGraph();
// FlowElementGraph elementGraph = new HashJoinAroundHashJoinLeftMostGraph();
RuleResult ruleResult = new RuleExec( ruleRegistry ).executeRulePhase( PlanPhase.PreResolveAssembly, plannerContext, new RuleResult( elementGraph ) );
FlowElementGraph flowElementGraph = ruleResult.getAssemblyGraph();
flowElementGraph.writeDOT( getPlanPath() + "/mergejoin.dot" );
ContractedTransformer transformer = new ContractedTransformer( new TestNoGroupTapExpressionGraph() );
Transformed<ElementGraph> transformed = transformer.transform( plannerContext, flowElementGraph );
transformed.writeDOTs( getPlanPath() + "/transform/" );
SubGraphIterator iterator = new ExpressionSubGraphIterator(
new PlannerContext(),
new TestNoGroupTapExpressionGraph(),
new TestConsecutiveTapsExpressionGraph(),
false,
flowElementGraph
);