From 3eeecea5d9daa7c9e9dcd6eb590915d732fa50dc Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Sun, 25 Apr 2021 22:41:15 +0800 Subject: [PATCH] [td-225]fix compiler error. --- src/client/src/tscUtil.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/src/tscUtil.c b/src/client/src/tscUtil.c index fbf48c8d0a..c77e95b271 100644 --- a/src/client/src/tscUtil.c +++ b/src/client/src/tscUtil.c @@ -702,7 +702,7 @@ void handleDownstreamOperator(SSqlRes* pRes, SQueryInfo* pQueryInfo) { // handle the following query process SQueryInfo *px = pQueryInfo->pDownstream; SColumnInfo* pColumnInfo = extractColumnInfoFromResult(px->pTableMetaInfo[0]->pTableMeta, px->colList); - int32_t numOfOutput = tscSqlExprNumOfExprs(px); + int32_t numOfOutput = (int32_t) tscSqlExprNumOfExprs(px); int32_t numOfCols = (int32_t) taosArrayGetSize(px->colList); SQueriedTableInfo info = {.colList = pColumnInfo, .numOfCols = numOfCols,}; @@ -3433,7 +3433,7 @@ static int32_t createSecondaryExpr(SQueryAttr* pQueryAttr, SQueryInfo* pQueryInf static int32_t createGlobalAggregateExpr(SQueryAttr* pQueryAttr, SQueryInfo* pQueryInfo) { assert(tscIsTwoStageSTableQuery(pQueryInfo, 0)); - pQueryAttr->numOfExpr3 = tscSqlExprNumOfExprs(pQueryInfo); + pQueryAttr->numOfExpr3 = (int32_t) tscSqlExprNumOfExprs(pQueryInfo); pQueryAttr->pExpr3 = calloc(pQueryAttr->numOfExpr3, sizeof(SExprInfo)); if (pQueryAttr->pExpr3 == NULL) { return TSDB_CODE_TSC_OUT_OF_MEMORY; -- GitLab