Created
June 17, 2015 14:37
-
-
Save mrdrozdov/85b0e34d915a8ee2a96f to your computer and use it in GitHub Desktop.
snippets.pig
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
-- 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