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

Method testBloomJoin

test/org/apache/pig/tez/TestTezCompiler.java:271–285  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

269 }
270
271 @Test
272 public void testBloomJoin() throws Exception {
273 String query =
274 "a = load 'file:///tmp/input1' as (x, y:int);" +
275 "b = load 'file:///tmp/input2' as (x, z:int);" +
276 "c = load 'file:///tmp/input2' as (x, w:int);" +
277 "d = join b by x, a by x, c by x using 'bloom';" +
278 "e = foreach d generate a::x as x, y, z, w;" +
279 "store e into 'file:///tmp/pigoutput';";
280
281 run(query, "test/org/apache/pig/test/data/GoldenFiles/tez/TEZC-BloomJoin-1.gld");
282 resetScope();
283 setProperty(PigConfiguration.PIG_BLOOMJOIN_STRATEGY, "reduce");
284 run(query, "test/org/apache/pig/test/data/GoldenFiles/tez/TEZC-BloomJoin-1-KeyToReducer.gld");
285 }
286
287 @Test
288 public void testBloomJoinLeftOuter() throws Exception {

Callers

nothing calls this directly

Calls 3

runMethod · 0.95
resetScopeMethod · 0.95
setPropertyMethod · 0.95

Tested by

no test coverage detected