Skip to content

Instantly share code, notes, and snippets.

@sethladd
Created April 6, 2009 09:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sethladd/90690 to your computer and use it in GitHub Desktop.
Save sethladd/90690 to your computer and use it in GitHub Desktop.
load two files via Pig and join them
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