Subject: Window function range between


This works for me

scala> val wSpec3 =
wSpec3: org.apache.spark.sql.expressions.WindowSpec =


Is the date format correct. It is better to refer to date column as

val window = Window.orderBy(*'date*).rangeBetween(0,5) HTH,

Dr Mich Talebzadeh

LinkedIn *
*Disclaimer:* Use it at your own risk. Any and all responsibility for any
loss, damage or destruction of data or any other property which may arise
from relying on this email's technical content is explicitly disclaimed.
The author will in no case be liable for any monetary damages arising from
such loss, damage or destruction.
On Mon, 25 Mar 2019 at 18:41, Kumar sp <[EMAIL PROTECTED]> wrote: