diff --git a/src/client/src/tscSubquery.c b/src/client/src/tscSubquery.c index c13e864293..2cc090abcd 100644 --- a/src/client/src/tscSubquery.c +++ b/src/client/src/tscSubquery.c @@ -298,21 +298,20 @@ static int32_t tscLaunchRealSubqueries(SSqlObj* pSql) { success = false; break; } - + tscClearSubqueryInfo(&pNew->cmd); pSql->pSubs[i] = pNew; SQueryInfo *pQueryInfo = tscGetQueryInfoDetail(&pNew->cmd, 0); pQueryInfo->tsBuf = pTSBuf; // transfer the ownership of timestamp comp-z data to the new created object - + // set the second stage sub query for join process TSDB_QUERY_SET_TYPE(pQueryInfo->type, TSDB_QUERY_TYPE_JOIN_SEC_STAGE); memcpy(&pQueryInfo->interval, &pSupporter->interval, sizeof(pQueryInfo->interval)); - pQueryInfo->groupbyExpr = pSupporter->groupbyExpr; - + tscTagCondCopy(&pQueryInfo->tagCond, &pSupporter->tagCond); - + pQueryInfo->colList = pSupporter->colList; pQueryInfo->exprList = pSupporter->exprList; pQueryInfo->fieldsInfo = pSupporter->fieldsInfo;