mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-21 01:00:48 +00:00
Respect alignment in groupArray function [#CLICKHOUSE-2]
This commit is contained in:
parent
4b01c2d9ba
commit
6acd58ee60
@ -155,7 +155,7 @@ struct GroupArrayListNodeBase
|
||||
/// Clones existing node (does not modify next field)
|
||||
Node * clone(Arena * arena)
|
||||
{
|
||||
return reinterpret_cast<Node *>(const_cast<char *>(arena->insert(reinterpret_cast<char *>(this), sizeof(Node) + size)));
|
||||
return reinterpret_cast<Node *>(const_cast<char *>(arena->alignedInsert(reinterpret_cast<char *>(this), sizeof(Node) + size, alignof(Node))));
|
||||
}
|
||||
|
||||
/// Write node to buffer
|
||||
|
Loading…
Reference in New Issue
Block a user