// need to add this branch to the key + value info
assert operator instanceof ReduceSinkOperator
&& followingWork instanceof ReduceWork;
ReduceSinkOperator rs = (ReduceSinkOperator) operator;
ReduceWork rWork = (ReduceWork) followingWork;
GenMapRedUtils.setKeyAndValueDesc(rWork, rs);
// remember which parent belongs to which tag
rWork.getTagToInput().put(rs.getConf().getTag(), work.getName());
// remember the output name of the reduce sink
rs.getConf().setOutputName(rWork.getName());
if (!context.connectedReduceSinks.contains(rs)) {
// add dependency between the two work items
TezEdgeProperty edgeProp = new TezEdgeProperty(EdgeType.SIMPLE_EDGE);
tezWork.connect(work, rWork, edgeProp);