You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sql7="create stream s7 state_window (c1) from stream_trigger partition by tbname options(fill_history_first(1)) into st7 as select _twstart, avg(cint), count(cint) from meters;"
66
66
sql8="create stream s8 state_window (c1) from stream_trigger partition by tbname into st8 as select _twstart ts, count(*) c1, avg(cint) c2, _twstart + 1 as ts2 from meters;"
67
67
sql9="create stream s9 PERIOD(10s, 10a) into st9 as select cast(_tlocaltime/1000000 as timestamp) as tl, _tprev_localtime/1000000 tp, _tnext_localtime/1000000 tn, now, max(cint) from meters;"
68
-
# #new stream with session
69
-
#sql11 = "create stream s11 session(ts,1a) from stream_trigger partition by tbname into st11 as select _twstart ts, count(*) c1, avg(cint) c2 from meters where cts >= _twstart and cts < _twend;"
70
-
#sql12 = "create stream s12 session(ts,1a) from stream_trigger into st12 as select _twstart ts, count(*) c1, avg(cint) c2 from meters where cts >= _twstart and cts < _twend;"
68
+
69
+
70
+
sql11="create stream s11 session(ts,1a) from stream_trigger partition by tbname into st11 as select _twstart ts, count(*) c1, avg(cint) c2 from meters where cts >= _twstart and cts <= _twend;"
71
+
sql12="create stream s12 session(ts,1a) from stream_trigger into st12 as select _twstart ts, count(*) c1, avg(cint) c2 from meters where cts >= _twstart and cts <= _twend;"
71
72
sql13="create stream s13 session(ts,1a) from stream_trigger into st13 as select _twstart ts, count(*) c1, avg(cint) c2 from meters;"
72
73
sql14="create stream s14 session(ts,1a) from stream_trigger into st14 as select _twstart ts, count(*) c1, avg(c2) c2 from %%trows;"
0 commit comments