diff --git a/src/client/src/tscSubquery.c b/src/client/src/tscSubquery.c index c13e8642932788553be7595339e2252fb8f3f0d5..2cc090abcdb6800f1c3bc4057fe4cb8f9f8f5674 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;