hopping.sql 277 B

123456789
  1. $p = SELECT
  2. user,
  3. HOP_START() as ts,
  4. SUM(payload) as payload
  5. FROM (select 'foo' as user, cast(1 as Timestamp) as ts, 10 as payload)
  6. GROUP BY HOP(ts, "PT10S", "PT10S", "PT10S"), user;
  7. $p = PROCESS $p;
  8. SELECT FormatType(TypeOf($p)); -- no MultiHoppingCore comp node