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

Method testParallelism

test/org/apache/pig/test/TestMergeJoin.java:559–569  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

557 }
558
559 @Test
560 public void testParallelism() throws Exception{
561 String query = "A = LOAD '" + INPUT_FILE + "';" +
562 "B = LOAD '" + INPUT_FILE + "';" +
563 "C = join A by $0, B by $0 using 'merge' parallel 50;" +
564 "store C into 'out';";
565 PigContext pc = new PigContext(ExecType.MAPREDUCE,cluster.getProperties());
566 pc.connect();
567 MROperPlan mro = Util.buildMRPlan(Util.buildPp(pigServer, query),pc);
568 Assert.assertEquals(1,mro.getRoots().get(0).getRequestedParallelism());
569 }
570
571 @Test
572 public void testIndexer() throws IOException{

Callers

nothing calls this directly

Calls 8

connectMethod · 0.95
buildMRPlanMethod · 0.95
buildPpMethod · 0.95
getRootsMethod · 0.80
getMethod · 0.65
getPropertiesMethod · 0.45
assertEqualsMethod · 0.45

Tested by

no test coverage detected