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

Method testUnion2WithNulls

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

Source from the content-addressed store, hash-verified

96 }
97
98 @Test
99 public void testUnion2WithNulls() throws Exception {
100 File tmpFile1 = genDataSetFile(true, 30) ;
101 File tmpFile2 = genDataSetFile(true, 50) ;
102 pig.registerQuery("a = load '"
103 + Util.generateURI(tmpFile1.toString(), pig.getPigContext())
104 + "'; ");
105 pig.registerQuery("b = load '"
106 + Util.generateURI(tmpFile2.toString(), pig.getPigContext())
107 + "'; ");
108 pig.registerQuery("a1 = foreach a generate $0, $1; ") ;
109 pig.registerQuery("b1 = foreach b generate $0, $1; ") ;
110 pig.registerQuery("c = union a1, b1; ") ;
111
112 verifyUnion( "c", 30 + 50 );
113 }
114
115 //verifies results
116 public void verifyUnion(String id, int actualCount ) 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