mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-11 17:02:25 +00:00
Respect alignment in groupArray function [#CLICKHOUSE-2]
This commit is contained in:
parent
198dd78100
commit
c6275dd8e4
@ -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