()
| 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 { |
nothing calls this directly
no test coverage detected