diff --git a/src/client/src/tscUtil.c b/src/client/src/tscUtil.c index c77e95b27168c4694b77cc21a76385851992bf79..568364d8b3871dc405f8b0696a6c821fab4bcbb8 100644 --- a/src/client/src/tscUtil.c +++ b/src/client/src/tscUtil.c @@ -3486,7 +3486,7 @@ static int32_t createTagColumnInfo(SQueryAttr* pQueryAttr, SQueryInfo* pQueryInf return TSDB_CODE_SUCCESS; } - pQueryAttr->numOfTags = (int32_t)taosArrayGetSize(pTableMetaInfo->tagColList); + pQueryAttr->numOfTags = (int16_t)taosArrayGetSize(pTableMetaInfo->tagColList); if (pQueryAttr->numOfTags == 0) { return TSDB_CODE_SUCCESS; }