This is an automated email from the ASF dual-hosted git repository. mrhhsg pushed a commit to branch spill_and_reserve in repository https://gitbox.apache.org/repos/asf/doris.git
commit 32e19b6357fdbe1502f57808fa425c09fe929eed Author: Hu Shenggang <hushengg...@selectdb.com> AuthorDate: Mon Jan 6 11:10:40 2025 +0800 [fix] ph hash map's reserved size --- be/src/vec/common/hash_table/ph_hash_map.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/be/src/vec/common/hash_table/ph_hash_map.h b/be/src/vec/common/hash_table/ph_hash_map.h index 4404cd784de..d306e40d901 100644 --- a/be/src/vec/common/hash_table/ph_hash_map.h +++ b/be/src/vec/common/hash_table/ph_hash_map.h @@ -199,9 +199,9 @@ public: if (!add_elem_size_overflow(num_elem)) { return 0; } - auto new_size = _hash_map.capacity() * 2 + 1; - return new_size * sizeof(typename HashMapImpl::slot_type); + return phmap::priv::hashtable_debug_internal::HashtableDebugAccess< + HashMapImpl>::LowerBoundAllocatedByteSize(new_size); } size_t size() const { return _hash_map.size(); } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org