mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 05:32:52 +00:00
dbms: Server: a little better [#METR-19266]
This commit is contained in:
parent
10770bc921
commit
16f8f33051
@ -1557,10 +1557,10 @@ bool FunctionArrayUniq::execute128bit(
|
||||
size_t off = offsets[i];
|
||||
for (size_t j = prev_off; j < off; ++j)
|
||||
{
|
||||
KeysNullMap<UInt128> bitmap{};
|
||||
|
||||
if (has_nullable_columns)
|
||||
{
|
||||
KeysNullMap<UInt128> bitmap{};
|
||||
|
||||
for (size_t i = 0; i < columns.size(); ++i)
|
||||
{
|
||||
if (null_maps[i] != nullptr)
|
||||
@ -1570,10 +1570,11 @@ bool FunctionArrayUniq::execute128bit(
|
||||
bitmap[i / 8] |= UINT8_C(1) << (i % 8);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
set.insert(packFixed<UInt128>(j, count, columns, key_sizes, bitmap));
|
||||
}
|
||||
else
|
||||
set.insert(packFixed<UInt128>(j, count, columns, key_sizes));
|
||||
}
|
||||
|
||||
res_values[i] = set.size();
|
||||
prev_off = off;
|
||||
|
Loading…
Reference in New Issue
Block a user