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