livingsocial / HiveSwarm

Helpful user defined fuctions / table generating functions for Hive
GNU General Public License v3.0
101 stars 46 forks source link

Return last x rows for an entity (e.g. last 5 purchases for a customer) #1

Closed msteffens closed 13 years ago

msteffens commented 13 years ago

In a table holds several rows for one entity (example: a table with several purchases per customer), please create a function that extracts the last x rows for that entity (sorted by date or similar).

bmuller commented 13 years ago

Note that the rows will be presorted.

bmuller commented 13 years ago

Created.