I'm new to Pig and I'm trying to perform RANK operation within group.My data looks like
Name address Date
A addr1 20150101
A addr2 20150130
B addr1 20140325
B addr2 20140821
B addr3 20150102
I want my output like this
Name address Date Rank
A addr1 20150101 1
A addr2 20150130 2
B addr1 20140325 1
B addr2 20140821 2
B addr3 20150102 3
I'm using Pig-0.12.1.Is there any way to get the output in required format with pig built-in functions ??