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

Method testUnion2

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

Source from the content-addressed store, hash-verified

78 }
79
80 @Test
81 public void testUnion2() throws Exception {
82
83 File tmpFile1 = genDataSetFile(false, 30) ;
84 File tmpFile2 = genDataSetFile(false, 50) ;
85 pig.registerQuery("a = load '"
86 + Util.generateURI(tmpFile1.toString(), pig.getPigContext())
87 + "'; ");
88 pig.registerQuery("b = load '"
89 + Util.generateURI(tmpFile2.toString(), pig.getPigContext())
90 + "'; ");
91 pig.registerQuery("a1 = foreach a generate $0, $1; ") ;
92 pig.registerQuery("b1 = foreach b generate $0, $1; ") ;
93 pig.registerQuery("c = union a1, b1; ") ;
94
95 verifyUnion( "c", 30 + 50 );
96 }
97
98 @Test
99 public void testUnion2WithNulls() 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