} else if (graphCreator.sinks.size() > 1) {
Iterator<DataSinkNode> iter = graphCreator.sinks.iterator();
rootNode = iter.next();
while (iter.hasNext()) {
rootNode = new SinkJoiner(rootNode, iter.next());
}
} else {
throw new CompilerException("Bug: The optimizer plan representation has no sinks.");
}