mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Fix array intersect.
This commit is contained in:
parent
736e3c0f46
commit
e8a8da1a4f
@ -432,15 +432,20 @@ ColumnPtr FunctionArrayIntersect::execute(const UnpackedArrays & arrays, Mutable
|
||||
current_has_nullable = true;
|
||||
else
|
||||
{
|
||||
typename Map::mapped_type * value = nullptr;
|
||||
|
||||
if constexpr (is_numeric_column)
|
||||
++map[columns[arg]->getElement(i)];
|
||||
value = &map[columns[arg]->getElement(i)];
|
||||
else if constexpr (std::is_same<ColumnType, ColumnString>::value || std::is_same<ColumnType, ColumnFixedString>::value)
|
||||
++map[columns[arg]->getDataAt(i)];
|
||||
value = &map[columns[arg]->getDataAt(i)];
|
||||
else
|
||||
{
|
||||
const char * data = nullptr;
|
||||
++map[columns[arg]->serializeValueIntoArena(i, arena, data)];
|
||||
value = &map[columns[arg]->serializeValueIntoArena(i, arena, data)];
|
||||
}
|
||||
|
||||
if (*value == arg)
|
||||
++(*value);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user