Advertisement
Guest User

Untitled

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