mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
dbms: little better [#METR-19371].
This commit is contained in:
parent
c150e0afd6
commit
8addc4b7c7
@ -60,7 +60,7 @@ void filterArraysImpl(
|
|||||||
if (result_size_hint < 0)
|
if (result_size_hint < 0)
|
||||||
res_elems.reserve(src_elems.size());
|
res_elems.reserve(src_elems.size());
|
||||||
else if (result_size_hint < 1000000000 && src_elems.size() < 1000000000) /// Избегаем переполнения.
|
else if (result_size_hint < 1000000000 && src_elems.size() < 1000000000) /// Избегаем переполнения.
|
||||||
res_elems.reserve(result_size_hint * src_elems.size() / size);
|
res_elems.reserve((result_size_hint * src_elems.size() + size - 1) / size);
|
||||||
}
|
}
|
||||||
|
|
||||||
IColumn::Offset_t current_src_offset = 0;
|
IColumn::Offset_t current_src_offset = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user