diff --git a/src/client/src/tscUtil.c b/src/client/src/tscUtil.c index 1573d2d2d7c1324007458af0dee16b00164dff31..a21b92c4225df98939e79ab61c7da36ed2bbd4ff 100644 --- a/src/client/src/tscUtil.c +++ b/src/client/src/tscUtil.c @@ -3434,7 +3434,7 @@ int32_t tscQueryInfoCopy(SQueryInfo* pQueryInfo, const SQueryInfo* pSrc) { pQueryInfo->clauseLimit = pSrc->clauseLimit; pQueryInfo->prjOffset = pSrc->prjOffset; pQueryInfo->numOfTables = 0; - pQueryInfo->window = pSrc->window; + pQueryInfo->range = pSrc->range; pQueryInfo->sessionWindow = pSrc->sessionWindow; pQueryInfo->pTableMetaInfo = NULL; pQueryInfo->multigroupResult = pSrc->multigroupResult; diff --git a/src/query/src/qAggMain.c b/src/query/src/qAggMain.c index ee56f2927f427dd711eb986b5e3f1f3fa7df19d8..fd940ee2df65a2f2687cab5eea4b5db188ef0174 100644 --- a/src/query/src/qAggMain.c +++ b/src/query/src/qAggMain.c @@ -2978,7 +2978,7 @@ static void full_copy_function(SQLFunctionCtx *pCtx) { for (int t = 0; t < pCtx->tagInfo.numOfTagCols; ++t) { SQLFunctionCtx* tagCtx = pCtx->tagInfo.pTagCtxList[t]; if (tagCtx->functionId == TSDB_FUNC_TAG_DUMMY) { - aAggs[TSDB_FUNC_TAGPRJ].xFunction(tagCtx); + aAggs[TSDB_FUNC_TAG].xFunction(tagCtx); } } }