Hash join: Difference between revisions
Content added Content deleted
Line 322: | Line 322: | ||
# hash phase |
# hash phase |
||
h = table1.group_by {|s| s[index1]} |
h = table1.group_by {|s| s[index1]} |
||
h.default = [] |
|||
# join phase |
# join phase |
||
table2.collect {|r| |
table2.collect {|r| |