diff --git a/source/libs/executor/src/executil.c b/source/libs/executor/src/executil.c index 2716f7fd7d64fed6d6d18fc1f907766bda834c39..27ac8e4076b7201d9c967f13c0a463510f61f47a 100644 --- a/source/libs/executor/src/executil.c +++ b/source/libs/executor/src/executil.c @@ -454,6 +454,7 @@ int32_t getColInfoResultForGroupby(void* metaHandle, SNodeList* group, STableLis SSDataBlock* pResBlock = NULL; void* keyBuf = NULL; SArray* groupData = NULL; + SArray* pUidTagList = NULL; static T_MD5_CTX lastMd5 = {-1}; static SArray* lastTableList = NULL; @@ -493,7 +494,7 @@ int32_t getColInfoResultForGroupby(void* metaHandle, SNodeList* group, STableLis goto end; } - SArray* pUidTagList = taosArrayInit(8, sizeof(STUidTagInfo)); + pUidTagList = taosArrayInit(8, sizeof(STUidTagInfo)); for (int32_t i = 0; i < rows; ++i) { STableKeyInfo* pkeyInfo = taosArrayGet(pTableListInfo->pTableList, i); STUidTagInfo info = {.uid = pkeyInfo->uid};