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

Method testMergeJoin3Way

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

Source from the content-addressed store, hash-verified

477 }
478
479 @Test
480 public void testMergeJoin3Way() throws IOException{
481 try {
482 pigServer.registerQuery("A = LOAD '" + INPUT_FILE + "' as (id, name, n);");
483 pigServer.registerQuery("B = LOAD '" + INPUT_FILE + "' as (id, name);");
484 pigServer.registerQuery("C = LOAD '" + INPUT_FILE + "' as (id, name);");
485 pigServer.registerQuery("D = join A by id, B by id, C by id using 'merge';");
486 }catch(Exception e) {
487 PigException pe = LogUtils.getPigException(e);
488 Assert.assertTrue( pe.getMessage().contains( "Merge join can only be applied for 2-way joins" ) );
489 return;
490 }
491 Assert.fail("Should throw exception, do not support 3 way join");
492 }
493
494 @Test
495 public void testMergeJoinWithOrderAndSplit() throws Exception{

Callers

nothing calls this directly

Calls 4

getPigExceptionMethod · 0.95
registerQueryMethod · 0.45
containsMethod · 0.45
getMessageMethod · 0.45

Tested by

no test coverage detected