From 50d7f17785cb3c1914d41afcb486fc6f93bc7fde Mon Sep 17 00:00:00 2001 From: Ganlin Zhao Date: Tue, 1 Mar 2022 16:05:19 +0800 Subject: [PATCH] fix CI --- src/common/src/texpr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/src/texpr.c b/src/common/src/texpr.c index 5854dcc67c..002d73b8f9 100644 --- a/src/common/src/texpr.c +++ b/src/common/src/texpr.c @@ -112,7 +112,8 @@ int32_t exprTreeValidateExprNode(tExprNode *pExpr) { pExpr->_node.optr == TSDB_BINARY_OP_REMAINDER) { int16_t leftType = pExpr->_node.pLeft->resultType; int16_t rightType = pExpr->_node.pRight->resultType; - if (!IS_NUMERIC_TYPE(leftType) || !IS_NUMERIC_TYPE(rightType)) { + if ((!IS_NUMERIC_TYPE(leftType) && IS_TIMESTAMP_TYPE(leftType)) || + (!IS_NUMERIC_TYPE(rightType) && IS_TIMESTAMP_TYPE(rightType))) { return TSDB_CODE_TSC_INVALID_OPERATION; } if (IS_TIMESTAMP_TYPE(leftType) || IS_TIMESTAMP_TYPE(rightType)) { -- GitLab