From af428c4d2479ff9c1ac0a119ebef47543baa5a44 Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Sat, 23 Jan 2021 14:57:47 +0800 Subject: [PATCH] [TD-225]refactor codes. --- .../inc/qArithmeticOperator.h => common/inc/tarithoperator.h} | 0 .../src/qArithmeticOperator.c => common/src/tarithoperator.c} | 2 +- src/common/src/texpr.c | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename src/{query/inc/qArithmeticOperator.h => common/inc/tarithoperator.h} (100%) rename src/{query/src/qArithmeticOperator.c => common/src/tarithoperator.c} (99%) diff --git a/src/query/inc/qArithmeticOperator.h b/src/common/inc/tarithoperator.h similarity index 100% rename from src/query/inc/qArithmeticOperator.h rename to src/common/inc/tarithoperator.h diff --git a/src/query/src/qArithmeticOperator.c b/src/common/src/tarithoperator.c similarity index 99% rename from src/query/src/qArithmeticOperator.c rename to src/common/src/tarithoperator.c index 677951bd07..1cb667d259 100644 --- a/src/query/src/qArithmeticOperator.c +++ b/src/common/src/tarithoperator.c @@ -15,9 +15,9 @@ #include "os.h" -#include "qArithmeticOperator.h" #include "ttype.h" #include "tutil.h" +#include "tarithoperator.h" #define ARRAY_LIST_OP(left, right, _left_type, _right_type, len1, len2, out, op, _res_type, _ord) \ { \ diff --git a/src/common/src/texpr.c b/src/common/src/texpr.c index b4edc2f382..f941fc4501 100644 --- a/src/common/src/texpr.c +++ b/src/common/src/texpr.c @@ -24,7 +24,7 @@ #include "tsdb.h" #include "tskiplist.h" #include "texpr.h" - +#include "tarithoperator.h" static uint8_t UNUSED_FUNC isQueryOnPrimaryKey(const char *primaryColumnName, const tExprNode *pLeft, const tExprNode *pRight) { if (pLeft->nodeType == TSQL_NODE_COL) {