Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

RANK in nested foreach, is it working?

$
0
0
Hi, can't make it work:

flatRank = FOREACH groupedRecs {
ranked = RANK recs by score DESC;
filtered = FILTER ranked by $0 <100;
GENERATE FLATTEN(ranked) as ($0 as rank_val, item_id, r_item_id, score);

Error:
Syntax error, unexpected symbol at or near 'RANK'

Viewing all articles
Browse latest Browse all 5648

Latest Images

Trending Articles



Latest Images