mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
ubsan/memsan fix.
This commit is contained in:
parent
541f85b58a
commit
1cf47da60d
@ -224,8 +224,18 @@ private:
|
||||
|
||||
public:
|
||||
bool hasZero() const { return has_zero; }
|
||||
void setHasZero() { has_zero = true; }
|
||||
void clearHasZero() { has_zero = false; }
|
||||
|
||||
void setHasZero()
|
||||
{
|
||||
has_zero = true;
|
||||
new (zeroValue()) Cell();
|
||||
}
|
||||
|
||||
void clearHasZero()
|
||||
{
|
||||
has_zero = false;
|
||||
zeroValue()->~Cell();
|
||||
}
|
||||
|
||||
Cell * zeroValue() { return reinterpret_cast<Cell*>(&zero_value_storage); }
|
||||
const Cell * zeroValue() const { return reinterpret_cast<const Cell*>(&zero_value_storage); }
|
||||
|
@ -0,0 +1 @@
|
||||
[[],[2]]
|
@ -0,0 +1 @@
|
||||
select groupUniqArray(v) from values('id int, v Array(int)', (1, [2]), (1, [])) group by id;
|
Loading…
Reference in New Issue
Block a user