diff --git a/source/libs/executor/src/executorimpl.c b/source/libs/executor/src/executorimpl.c index 10fa5a23b40ca7cf33823a52136edbadabd7317e..a6a1d6ea05ae92ddb823bab71850cf1d33fce50c 100644 --- a/source/libs/executor/src/executorimpl.c +++ b/source/libs/executor/src/executorimpl.c @@ -1264,7 +1264,7 @@ static void projectApplyFunctions(SExprInfo* pExpr, SSDataBlock* pResult, SSData pResult->info.rows = pCtx[0].input.numOfRows; } else if (pExpr[k].pExpr->nodeType == QUERY_NODE_VALUE) { - SVariant *pVal = pExpr->pExpr->pVal; + SVariant *pVal = pExpr[k].pExpr->pVal; char *payload; if (IS_VAR_DATA_TYPE(pVal->nType)) { payload = taosMemoryCalloc(1, pVal->nLen + VARSTR_HEADER_SIZE);