You are looking for window functions. On 2 Dec 2016 22:33, "Georg Heiler" <georg.kf.hei...@gmail.com> wrote:
> Hi, > > how can I perform a group wise operation in spark more elegant? Possibly > dynamically generate SQL? Or would you suggest a custom UADF? > http://stackoverflow.com/q/40930003/2587904 > > Kind regards, > Georg >