You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by yi...@apache.org on 2023/01/30 12:28:30 UTC
[doris] branch master updated: [fix](olap) Incorrect reserving size for PredicateColumn converted from ColumnDictionary (#16249)
This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 9aa0d86fec [fix](olap) Incorrect reserving size for PredicateColumn converted from ColumnDictionary (#16249)
9aa0d86fec is described below
commit 9aa0d86fec44e06dda0bb3677e4318e6e8fae3e1
Author: Jerry Hu <mr...@gmail.com>
AuthorDate: Mon Jan 30 20:28:22 2023 +0800
[fix](olap) Incorrect reserving size for PredicateColumn converted from ColumnDictionary (#16249)
---
be/src/vec/columns/column_dictionary.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/be/src/vec/columns/column_dictionary.h b/be/src/vec/columns/column_dictionary.h
index 354fb78e2e..122f15d9f0 100644
--- a/be/src/vec/columns/column_dictionary.h
+++ b/be/src/vec/columns/column_dictionary.h
@@ -293,7 +293,7 @@ public:
convert_dict_codes_if_necessary();
}
auto res = vectorized::PredicateColumnType<TYPE_STRING>::create();
- res->reserve(_codes.size());
+ res->reserve(_codes.capacity());
for (size_t i = 0; i < _codes.size(); ++i) {
auto& code = reinterpret_cast<T&>(_codes[i]);
auto value = _dict.get_value(code);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org