Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Pig Wiki" for change 
notification.

The following page has been changed by PradeepKamath:
http://wiki.apache.org/pig/PigMergeJoin

------------------------------------------------------------------------------
  Perhaps a figure might help illustrate:
  
  Left input block 1:
+ ==================
  || 25 ||
  || .. ||
  || 35 ||
  
  Left input block 2:
+ ===================
  || 45 ||
  || .. ||
  || 65 ||
  
- Right input
+ Right input:
+ ===========
  || 10 ||
  || .. ||
  || 24 ||
@@ -118, +121 @@

  || 44 ||
  || 45 ||
  || .. ||
+ 
  The first map would need to know it is the first map and hence handle the 
outer join for all the values on the right side < the first key (10 upto 24). 
It would then handle the join of all values present in the first block of the 
left input (25 to 35). It would also need to continue to read on the right side 
upto the first value in the next block of the left input (i.e. upto 44 
inclusive). The next map (map on 2nd block) would handle the join of all values 
from  45 to EOF on right side. 
   
  In current implementation (r806281) only inner joins are supported.

Reply via email to