Merge pull request #27023 from taosdata/fix/TD-31250

fix:[TD-31250] stream start later than insert data
This commit is contained in:
dapan1121 2024-08-07 11:16:57 +08:00 committed by GitHub
commit f70394f778
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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) {