The table data looks like this. Table has clustering order desc on timestamp, and primary key is (name, timestamp):
name - address - timestamp
John - J_Addr 1 - Jan 01, 2017
John - J_Addr 2 - Feb 05, 2017
Mark - M_Addr 1 - Jan 01, 2017
Mark - M_Addr 2 - Mar 05, 2017
Is there a way to get the latest address for each name? In above case, the expected result would be:
name - address - timestamp
John - J_Addr 2 - Feb 05, 2017
Mark - M_Addr 2 - Mar 05, 2017