Skip to content

Instantly share code, notes, and snippets.

@pixie79
Created June 28, 2013 14:45
Show Gist options
  • Save pixie79/5885215 to your computer and use it in GitHub Desktop.
Save pixie79/5885215 to your computer and use it in GitHub Desktop.
data = (time, user, segment, sessionId);
last_segment_per_sessionId = foreach data by sesssionID
GENERATE MAX(time),
user,
segment,
sessionID;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment