Ed Elliott continues a series on Spark examples:
The next example is how to do a ROW_NUMBER(), my favourite window function.
Ed’s example is ROW_NUMBER()
but it also applies to other partitioning window functions such as RANK()
, DENSE_RANK()
, and NTILE()
.