Hi guys,

Perhaps you'll be able to help me. I can't get a script to work on pig.

I've loaded 3 files into PIG with the following structure:

file1 = (record_id:long, range_start:long, range_end:long)
file2 = (record_id:long, number1:double, number2:double)
file3 = (myKey:long, char1:chararray, char2:chararray)

I'd to turn this into a bag which has, for each tuple in file3, the 
corresponding tuple from file2.

file3 needs to match file1 by having the 'myKey' field between the range_start 
and range_end numbers and file1 matches file2 by the record_id.


Does it make sense?
How would you guys go about it?

Thanks!
Juan

Sent from my iPhone

Reply via email to