From 2f04fe063fdcad499dfca2f319df7fe938906d91 Mon Sep 17 00:00:00 2001 From: markswang <792637585@qq.com> Date: Mon, 26 Jul 2021 12:55:47 +0800 Subject: [PATCH] [TD-5496]: add filter length when estimate query msg size --- src/client/src/tscUtil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/src/tscUtil.c b/src/client/src/tscUtil.c index 22189dd0be..0204282fcc 100644 --- a/src/client/src/tscUtil.c +++ b/src/client/src/tscUtil.c @@ -4588,7 +4588,7 @@ int32_t tscGetColFilterSerializeLen(SQueryInfo* pQueryInfo) { for (int32_t j = 0; j < pCol->info.flist.numOfFilters; ++j) { len += sizeof(SColumnFilterInfo); if (pCol->info.flist.filterInfo[j].filterstr) { - len += pCol->info.flist.filterInfo[j].len + 1 * TSDB_NCHAR_SIZE; + len += (int32_t)pCol->info.flist.filterInfo[j].len + 1 * TSDB_NCHAR_SIZE; } } } -- GitLab