Merge pull request #65446 from ClickHouse/backport/24.3/65379

Backport #65379 to 24.3: Fix alignment of Distinct combinator
This commit is contained in:
Antonio Andelic 2024-06-24 12:50:59 +01:00 committed by GitHub
commit 877c59bc3a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -228,6 +228,11 @@ public:
return prefix_size + nested_func->sizeOfData(); return prefix_size + nested_func->sizeOfData();
} }
size_t alignOfData() const override
{
return std::max(alignof(Data), nested_func->alignOfData());
}
void create(AggregateDataPtr __restrict place) const override void create(AggregateDataPtr __restrict place) const override
{ {
new (place) Data; new (place) Data;