diff --git a/src/query/src/qExecutor.c b/src/query/src/qExecutor.c index 3af41395f3..0e2aba1d24 100644 --- a/src/query/src/qExecutor.c +++ b/src/query/src/qExecutor.c @@ -7080,6 +7080,10 @@ static SSDataBlock* doTagScan(void* param, bool* newgroup) { qDebug("QInfo:0x%"PRIx64" create tag values results completed, rows:%d", GET_QID(pRuntimeEnv), count); } + if (pOperator->status == OP_EXEC_DONE) { + setQueryStatus(pOperator->pRuntimeEnv, QUERY_COMPLETED); + } + pRes->info.rows = count; return (pRes->info.rows == 0)? NULL:pInfo->pRes; }