提交 2f04fe06 编写于 作者: M markswang

[TD-5496]<fix>: add filter length when estimate query msg size

上级 cc9f2fc5
...@@ -4588,7 +4588,7 @@ int32_t tscGetColFilterSerializeLen(SQueryInfo* pQueryInfo) { ...@@ -4588,7 +4588,7 @@ int32_t tscGetColFilterSerializeLen(SQueryInfo* pQueryInfo) {
for (int32_t j = 0; j < pCol->info.flist.numOfFilters; ++j) { for (int32_t j = 0; j < pCol->info.flist.numOfFilters; ++j) {
len += sizeof(SColumnFilterInfo); len += sizeof(SColumnFilterInfo);
if (pCol->info.flist.filterInfo[j].filterstr) { 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;
} }
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册