From 026f61ee166b118d7a316709794afaa6862e676f Mon Sep 17 00:00:00 2001 From: Ganlin Zhao Date: Tue, 29 Aug 2023 18:24:31 +0800 Subject: [PATCH] fix bug --- source/libs/planner/src/planPhysiCreater.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/libs/planner/src/planPhysiCreater.c b/source/libs/planner/src/planPhysiCreater.c index d6a59ba42c..eaae9b0c8f 100644 --- a/source/libs/planner/src/planPhysiCreater.c +++ b/source/libs/planner/src/planPhysiCreater.c @@ -45,7 +45,8 @@ static int32_t getSlotKey(SNode* pNode, const char* pStmtName, char* pKey, int32 SColumnNode* pCol = (SColumnNode*)pNode; if (NULL != pStmtName) { if ('\0' != pStmtName[0]) { - return snprintf(pKey, keyBufSize, "%s.%s", pStmtName, pCol->node.aliasName); + len = snprintf(pKey, keyBufSize, "%s.%s", pStmtName, pCol->node.aliasName); + return taosCreateMD5Hash(pKey, len); } else { return snprintf(pKey, keyBufSize, "%s", pCol->node.aliasName); } @@ -59,7 +60,8 @@ static int32_t getSlotKey(SNode* pNode, const char* pStmtName, char* pKey, int32 } if (NULL != pStmtName && '\0' != pStmtName[0]) { - return snprintf(pKey, keyBufSize, "%s.%s", pStmtName, ((SExprNode*)pNode)->aliasName); + len = snprintf(pKey, keyBufSize, "%s.%s", pStmtName, ((SExprNode*)pNode)->aliasName); + return taosCreateMD5Hash(pKey, len); } return snprintf(pKey, keyBufSize, "%s", ((SExprNode*)pNode)->aliasName);