Any way to join two aliases without using CROSS

2014-03-25 Thread Christopher Surage
I am trying to perform the following action, but the only solution I have been able to come up with is using a CROSS, but I don't want to use that statement as it is a very expensive process. (1,2,3,4,5) (10,11) (1,2,4,5,7) (10,11) (1,5,7,8,9) (10,11) I want to make

Re: Any way to join two aliases without using CROSS

2014-03-25 Thread Christopher Surage
in Example: Nested Blocks section http://pig.apache.org/docs/r0.10.0/basic.html#foreach On Tue, Mar 25, 2014 at 3:01 PM, Christopher Surage csur...@gmail.com wrote: I am trying to perform the following action, but the only solution I have been able to come up with is using a CROSS

Re: Any way to join two aliases without using CROSS

2014-03-25 Thread Christopher Surage
you want to loop over 2 collection and combine their tuples. Are they always going to be same size (number of tuples)? On Tue, Mar 25, 2014 at 4:03 PM, Christopher Surage csur...@gmail.com wrote: The output I would like to see is (1,2,3,4,5,10,11) (1,2,4,5,7,10,12) (1,5,7,8,9,10,13

Re: Any way to join two aliases without using CROSS

2014-03-25 Thread Christopher Surage
. I am referring to the examples like in Example: Nested Blocks section http://pig.apache.org/docs/r0.10.0/basic.html#foreach On Tue, Mar 25, 2014 at 3:01 PM, Christopher Surage csur...@gmail.com wrote: I am trying to perform the following action, but the only solution I have

Re: Any way to join two aliases without using CROSS

2014-03-25 Thread Christopher Surage
problem On Mar 25, 2014, at 1:13 PM, Christopher Surage csur...@gmail.com wrote: @ pradeep, I know what the cross product will do, but I have many lines in many files. So the cross will take far too long to complete. On Tue, Mar 25, 2014 at 3:58 PM, Pradeep Gollakota pradeep