()
| 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{ |
nothing calls this directly
no test coverage detected