mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
Reserve memory for HashTable in ColumnUnique.
This commit is contained in:
parent
7f8688b67b
commit
df379afde4
@ -223,7 +223,7 @@ void ColumnUnique<ColumnType>::buildIndex()
|
||||
return;
|
||||
|
||||
auto column = getRawColumnPtr();
|
||||
index = std::make_unique<IndexMapType>();
|
||||
index = std::make_unique<IndexMapType>(column_holder->size());
|
||||
|
||||
for (auto row : ext::range(numSpecialValues(), column->size()))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user