p.done();
}
@Test
public void testUnionTableWithEmptyMR() throws Exception {
Pipeline p = new SparkPipeline("local", "empty");
assertFalse(Iterables.isEmpty(p.emptyPTable(Writables.tableOf(Writables.strings(), Writables.longs()))
.union(
p.read(From.textFile(tempDir.copyResourceFileName("shakes.txt")))
.parallelDo(new SplitFn(), Writables.tableOf(Writables.strings(), Writables.longs())))
.groupByKey()
.combineValues(Aggregators.SUM_LONGS())
.materialize()));
p.done();
}