Advertisement
Guest User

Untitled

a guest
Feb 21st, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. author_result = FOREACH (GROUP with_count BY BookAuthor) {
  2. >> order_by_count = ORDER with_count BY count DESC;
  3. >> GENERATE group AS Author, order_by_count.(Year, count) AS Books;
  4. >> };
  5.  
  6. DESCRIBE author_result;
  7.  
  8. author_result: {Author: chararray,Books: {(group::Year: int,count: long)}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement