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'
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'