fix:[TD-31250] stream start later than insert data
This commit is contained in:
parent
cce942d04d
commit
868e5fef0e
|
@ -454,7 +454,7 @@ int buildStable(TAOS* pConn, TAOS_RES* pRes) {
|
||||||
taos_free_result(pRes);
|
taos_free_result(pRes);
|
||||||
#else
|
#else
|
||||||
pRes = taos_query(pConn,
|
pRes = taos_query(pConn,
|
||||||
"create stream meters_summary_s trigger at_once IGNORE EXPIRED 0 into meters_summary as select "
|
"create stream meters_summary_s trigger at_once IGNORE EXPIRED 0 fill_history 1 into meters_summary as select "
|
||||||
"_wstart, max(current) as current, "
|
"_wstart, max(current) as current, "
|
||||||
"groupid, location from meters partition by groupid, location interval(10m)");
|
"groupid, location from meters partition by groupid, location interval(10m)");
|
||||||
if (taos_errno(pRes) != 0) {
|
if (taos_errno(pRes) != 0) {
|
||||||
|
|
Loading…
Reference in New Issue