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

Method testUnion1

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

Source from the content-addressed store, hash-verified

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