Ooops bug is a bad alias in my script. Ignore.

2012/6/21 Jonathan Coveney <[email protected]>

> If I'm not misunderstanding what it should be doing, this looks like an
> error to me?
>
>
> $ cat data
>
> 1 1
>
> 1 2
>
> 1 3
>
> 1 4
>
> 2 5
>
> 2 6
>
> 2 7
>
> 2 8
>
> 3 3
>
> 3 10
>
> 3 11
>
> 4 4
>
> 4 42
>
> 4 19
>
> 5 5
>
> 5 52
>
> 5 53
>
> 5 54
>
>
> a = load 'data' as (x:int, y:int);
>
> b = foreach a generate TOTUPLE(x,y);
>
> c = group a all;
>
> d = foreach c {
>
>     ord = ORDER a BY $0 asc;
>
>     generate BagToTuple(ord);
>
> }
>
>
> output:
>
>
> ((1,2,1,1,1,3,1,4,2,5,2,6,2,7,2,8,3,10,3,3,3,11,4,4,4,42,4,19,5,5,5,52,5,53,5,54))
>
>

Reply via email to