Re: Javascript UDF return Empty results

2014-08-04 Thread Sven Krasser
Eran, It looks like the problem is in your return statement. Your Pig schema has one field called 'result' of type 'long,' so you should return {'result': result}. -Sven On Tue, Jun 18, 2013 at 8:25 AM, Eran Sagi wrote: > Hi, > I’ve written a PIG LATIN batch which loads a CSV file. > To supp

Re: RANK in nested foreach, is it working?

2014-08-04 Thread Serega Sheypak
Yes, I've already found it. Implemented using cusotm code. Thanks. 2014-08-04 20:10 GMT+04:00 Cheolsoo Park : > No, it's not implemented yet. Here is the jira- > https://issues.apache.org/jira/browse/PIG-3279 > > > On Sat, Aug 2, 2014 at 12:29 PM, Serega Sheypak > wrote: > > > Hi, can't make it

Re: RANK in nested foreach, is it working?

2014-08-04 Thread Cheolsoo Park
No, it's not implemented yet. Here is the jira- https://issues.apache.org/jira/browse/PIG-3279 On Sat, Aug 2, 2014 at 12:29 PM, Serega Sheypak wrote: > Hi, can't make it work: > > flatRank = FOREACH groupedRecs { > ranked = RANK recs by score DESC; > filtered = FILTER ranked by $0 <100;