From 3b10ac29cebe7f430d42877d0fc6ecfd997a36c7 Mon Sep 17 00:00:00 2001 From: Ganlin Zhao Date: Tue, 9 May 2023 11:09:29 +0800 Subject: [PATCH] use functionType instead of functionName --- source/libs/executor/src/timesliceoperator.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/libs/executor/src/timesliceoperator.c b/source/libs/executor/src/timesliceoperator.c index 5110712c80..7a4b9014bc 100644 --- a/source/libs/executor/src/timesliceoperator.c +++ b/source/libs/executor/src/timesliceoperator.c @@ -194,13 +194,13 @@ static bool checkDuplicateTimestamps(STimeSliceOperatorInfo* pSliceInfo, SColumn } static bool isInterpFunc(SExprInfo* pExprInfo) { - char *name = pExprInfo->pExpr->_function.functionName; - return (strcasecmp(name, "interp") == 0); + int32_t functionType = pExprInfo->pExpr->_function.functionType; + return (functionType == FUNCTION_TYPE_INTERP); } static bool isGroupKeyFunc(SExprInfo* pExprInfo) { - char *name = pExprInfo->pExpr->_function.functionName; - return (strcasecmp(name, "_group_key") == 0); + int32_t functionType = pExprInfo->pExpr->_function.functionType; + return (functionType == FUNCTION_TYPE_GROUP_KEY); } static bool genInterpolationResult(STimeSliceOperatorInfo* pSliceInfo, SExprSupp* pExprSup, SSDataBlock* pResBlock,