Consider I have a input df with a timestamp field column and when setting window duration (with no sliding interval) as :
10 minutes
with input of time(2019-02-28 22:33:02)
window formed is as (2019-02-28 22:30:02) to (2019-02-28 22:40:02)
8 minutes
with same input of time(2019-02-28 22:33:02)
window formed is as (2019-02-28 22:26:02) to (2019-02-28 22:34:02)
5 minutes
with same input of time(2019-02-28 22:33:02)
window formed is as (2019-02-28 22:30:02) to (2019-02-28 22:35:02)
14 minutes
with input of time(2019-02-28 22:33:02)
window formed is as (2019-02-28 22:32:02) to (2019-02-28 22:46:02)
So, my question here is :
How does spark calculates the start time of a window with a given input of ts ?