Posts

Window Functions in Hive

Image
Dear friends, today we' ll learn about window functions in Hive. Window functions are very specific in Hive which allows us to create a window on a set of data further allowing aggregation surrounding that data.   Window Functions in Hive includes the following functions ·          Lead : v      The number of rows to lead can optionally be specified.  If the number of rows to lead is not specified, the lead is one row. v      Returns null when the lead for the current row extends beyond the end of the window. ·          Lag : v      The number of rows to lag can optionally be specified. If the number of rows to lag is not specified, the lag is one row. v      Returns null when the lag for the current row extends before the beginning of the window. ·          FI...