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

Method testUnion1

test/org/apache/pig/test/TestMapReduce2.java:49–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47 }
48
49 @Test
50 public void testUnion1() throws Exception {
51 File tmpFile1 = genDataSetFile(false, 30 ) ;
52 File tmpFile2 = genDataSetFile(false, 50 ) ;
53 pig.registerQuery("a = load '"
54 + Util.generateURI(tmpFile1.toString(), pig.getPigContext())
55 + "'; ");
56 pig.registerQuery("b = load '"
57 + Util.generateURI(tmpFile2.toString(), pig.getPigContext())
58 + "'; ");
59 pig.registerQuery("c = union a, b; ") ;
60
61 verifyUnion( "c", 30 + 50 );
62 }
63
64 @Test
65 public void testUnion1WithNulls() throws Exception {

Callers

nothing calls this directly

Calls 6

genDataSetFileMethod · 0.95
generateURIMethod · 0.95
verifyUnionMethod · 0.95
registerQueryMethod · 0.45
toStringMethod · 0.45
getPigContextMethod · 0.45

Tested by

no test coverage detected