Looking at description of problem window functions may solve your issue. It allows operation over a window that can include records before/ after the particular record
-- Sent from: http://apache-spark-user-list.1001560.n3.nabble.com/ --------------------------------------------------------------------- To unsubscribe e-mail: user-unsubscr...@spark.apache.org