-Re: how can I distinct one field of a relation
Haitao Yao 2012-06-27, 06:00
I want a subset of A with a1 value distinct.
the current distinct will compare all the fields in A, which is not what I want.
在 2012-6-27，上午11:18， Jonathan Coveney 写道：
> What is your desired output? Sounds like you want a group.
> 2012/6/26 Haitao Yao <[EMAIL PROTECTED]>
>> How can I distinct only one field of a relation?
>> here's the demo:
>> A = LOAD 'data' AS (a1:int,a2:int,a3:int);
>> B = distinct A by a1;
>> how can I do this?
>> Haitao Yao
>> [EMAIL PROTECTED]
>> weibo: @haitao_yao
>> Skype: haitao.yao.final