You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by mo...@apache.org on 2023/01/31 15:39:11 UTC
[doris] 13/20: [fix](olap) Incorrect reserving size for PredicateColumn converted from ColumnDictionary (#16249)
This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch branch-1.2-lts
in repository https://gitbox.apache.org/repos/asf/doris.git
commit 5cf69f302b354e2d0dbb8dc4422c0c11b22174fa
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 95cd848763..2812c07103 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