Unfortunately, the Enumerate UDF from DataFu would not work in this case.
The UDF works on Bags and in this case, we want to enumerate a relation.
Implementing RANK is a very tricky thing to do correctly. I'm not even sure
if it's doable just by using Pig operators, UDFs or macros. Best option is
probably to request a Pig upgrade.


On Tue, Mar 25, 2014 at 6:21 PM, James <[email protected]> wrote:

> Hello,
>
> There is a similar UDF in DataFu named Enumerate.
>
> http://datafu.incubator.apache.org/docs/datafu/1.2.0/datafu/pig/bags/Enumerate.html
>
> I wish it may help.
>
> James

Reply via email to