MCPcopy Create free account
hub / github.com/apache/pig / testFinishInReduceLoc

Method testFinishInReduceLoc

test/org/apache/pig/test/TestFinish.java:186–199  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

184 }
185
186 @Test
187 public void testFinishInReduceLoc() throws Exception {
188 String inputFileName = setUp(ExecType.LOCAL);
189 // this file will be created on the cluster if finish() is called
190 String expectedFileName = "testFinishInReduceLoc-finish.txt";
191 pigServer.registerQuery("define MYUDF " + MyEvalFunction.class.getName() + "('LOCAL','"
192 + expectedFileName + "');");
193 pigServer.registerQuery("a = load '" + Util.encodeEscape(inputFileName) + "' using "
194 + PigStorage.class.getName() + "(':');");
195 pigServer.registerQuery("a1 = group a by $1;");
196 pigServer.registerQuery("b = foreach a1 generate MYUDF" + "(*);");
197 pigServer.openIterator("b");
198 checkAndCleanup(ExecType.LOCAL, expectedFileName, inputFileName);
199 }
200}
201

Callers

nothing calls this directly

Calls 6

setUpMethod · 0.95
encodeEscapeMethod · 0.95
checkAndCleanupMethod · 0.95
openIteratorMethod · 0.80
registerQueryMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected