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

Method testUnion2WithNulls

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

Source from the content-addressed store, hash-verified

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