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

Method testUnion2

test/org/apache/pig/test/TestLocal2.java:82–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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