"c = foreach b generate y;" +
"d = group c all;" +
"store d into '" + OUTPUT_FILE + "';";
PhysicalPlan pp = Util.buildPp(pigServer, query);
TezLauncher launcher = new TezLauncher();
PigStats pigStats = launcher.launchPig(pp, "testRun1", pc);
assertTrue(pigStats.isSuccessful());
String[] output = Util.readOutput(cluster.getFileSystem(), OUTPUT_FILE);
for (int i = 0; i < output.length; i++) {
assertEquals(OUTPUT_RECORDS[i], output[i]);