Created
April 6, 2009 09:33
-
-
Save sethladd/90690 to your computer and use it in GitHub Desktop.
load two files via Pig and join them
This file contains hidden or 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
people = LOAD 'people' USING PigStorage(',') AS (ssn,date,uic); | |
medical_cases = LOAD 'medical_cases' USING PigStorage(',') AS (ssn,data,icd9); | |
joined = JOIN people BY ssn , medical_cases BY ssn; | |
STORE joined INTO 'out' USING PigStorage(','); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment