提交 3b10ac29 编写于 作者: G Ganlin Zhao

use functionType instead of functionName

上级 07f714cc
...@@ -194,13 +194,13 @@ static bool checkDuplicateTimestamps(STimeSliceOperatorInfo* pSliceInfo, SColumn ...@@ -194,13 +194,13 @@ static bool checkDuplicateTimestamps(STimeSliceOperatorInfo* pSliceInfo, SColumn
} }
static bool isInterpFunc(SExprInfo* pExprInfo) { static bool isInterpFunc(SExprInfo* pExprInfo) {
char *name = pExprInfo->pExpr->_function.functionName; int32_t functionType = pExprInfo->pExpr->_function.functionType;
return (strcasecmp(name, "interp") == 0); return (functionType == FUNCTION_TYPE_INTERP);
} }
static bool isGroupKeyFunc(SExprInfo* pExprInfo) { static bool isGroupKeyFunc(SExprInfo* pExprInfo) {
char *name = pExprInfo->pExpr->_function.functionName; int32_t functionType = pExprInfo->pExpr->_function.functionType;
return (strcasecmp(name, "_group_key") == 0); return (functionType == FUNCTION_TYPE_GROUP_KEY);
} }
static bool genInterpolationResult(STimeSliceOperatorInfo* pSliceInfo, SExprSupp* pExprSup, SSDataBlock* pResBlock, static bool genInterpolationResult(STimeSliceOperatorInfo* pSliceInfo, SExprSupp* pExprSup, SSDataBlock* pResBlock,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册