blob: 74ba0f70d11eeb223f8e2aefbd783667b4825745 (
plain) (
blame)
1
2
3
4
|
insert into plato.Output
select key, row_number() over w as r, session_start() over w as s from plato.Input
window w AS (PARTITION BY key, SessionWindow(cast(subkey as Datetime), DateTime::IntervalFromMinutes(15)));
|