Then how about:-
X = COGroup A By $0,$1,
B By $0, $1 ;
The first output column will have to be wrapped in Tuple whereas if we group
by only one column we don't have to wrap. Is that the right logic?
Pi
On 5/16/08, Alan Gates <[EMAIL PROTECTED]> wrote:
>
> There really isn't any meaning to cogrouping with one field on one relation
> and two fields on another. Given our definition of tuple, there will never
> be any tuples that match. I believe Santhosh has changed this to be a
> syntax error.
>
> Alan.
>
> pi song wrote:
>
>> Normally we do COGroup like this:-
>>
>> X = COGroup A By $0, B By $0 ;
>>
>> This first column of the output will be data atom.
>>
>> But if we do:-
>>
>> X = COGroup A By $0, B By $0, $1 ;
>>
>> What is the the first column then? I assume the B grouping will be wrapped
>> to tuple and treated as atom. Am I right?
>>
>> Pi
>>
>>
>>
>