From 4e2eeed44c4268d43b0e4da1665a2ed222f58a75 Mon Sep 17 00:00:00 2001 From: Ganlin Zhao Date: Thu, 15 Jun 2023 16:31:36 +0800 Subject: [PATCH] optimize --- source/libs/parser/src/parTranslater.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/libs/parser/src/parTranslater.c b/source/libs/parser/src/parTranslater.c index 7259567b13..c2179fb274 100644 --- a/source/libs/parser/src/parTranslater.c +++ b/source/libs/parser/src/parTranslater.c @@ -3055,9 +3055,9 @@ static bool needFill(SNode* pNode) { static int32_t convertFillValue(STranslateContext* pCxt, SDataType dt, SNodeList* pValues, int32_t index) { SListCell* pCell = nodesListGetCell(pValues, index); - //if (dataTypeEqual(&dt, &((SExprNode*)pCell->pNode)->resType)) { - // return TSDB_CODE_SUCCESS; - //} + if (dataTypeEqual(&dt, &((SExprNode*)pCell->pNode)->resType) && (QUERY_NODE_VALUE == nodeType(pCell->pNode))) { + return TSDB_CODE_SUCCESS; + } SNode* pCastFunc = NULL; int32_t code = createCastFunc(pCxt, pCell->pNode, dt, &pCastFunc); if (TSDB_CODE_SUCCESS == code) {