Skip to content

Instantly share code, notes, and snippets.

@mrdrozdov
Created June 17, 2015 14:37
Show Gist options
  • Save mrdrozdov/85b0e34d915a8ee2a96f to your computer and use it in GitHub Desktop.
Save mrdrozdov/85b0e34d915a8ee2a96f to your computer and use it in GitHub Desktop.
snippets.pig
-- Load all files in directory
raw_data = load 'file_dir/*' using PigStorage('\t');
-- Load multiple files
raw_data = load '{file1,file2}' using PigStorage('\t');
-- Load multiple files using variable
%default SUPER_INPUT '{file1,file2}'
raw_data = load '$SUPER_INPUT' using PigStorage('\t');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment