Created
December 26, 2014 19:31
-
-
Save rjurney/83f2be7212504bf017c2 to your computer and use it in GitHub Desktop.
A Pig JOIN is just a COGROUP/FLATTEN
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
slugging_fatness_join = JOIN fatness BY player_id, slugging_stats BY player_id; | |
-- Equivalent | |
slugging_fatness_join = FOREACH | |
(COGROUP fatness BY player_id, slugging_stats BY player_id) | |
GENERATE | |
FLATTEN(fatness), | |
FLATTEN(slugging_stats); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment