ArroyoSystems / arroyo

Distributed stream processing engine in Rust

Home Page:https://arroyo.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add support for session window

mwylde opened this issue · comments

Unlike hopping or tumbling windows which divide time up in fixed slices, session windows divide up time according to a minimum gap size.

Session windows will be introduced via a SQL function like the existing hop and tumble windows:

SELECT count(*), user_id
FROM pageviews
GROUP BY user_id, session(interval '10 minutes')

This is somewhat complicated by the fact that currently our SQL takes some shortcuts with handling window outputs that assume windows are fixed-length.

Closed via #243