I am new to pig.
In pig, I want to load multiple files with timestamps at their names.
If I load files between 2012/02/12 to 2012/02/19, the following works
$START = "12"
$END = "19"
raw_data = load '/table/status/2012/02/{$START,$END}' using Loader()
Suppose the start date is 2011/12/29 and end date is 2012/01/04, how do I change the line of code?
Thanks for any help!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…