mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
Fix crash when adding empty tuple to query cache
This commit is contained in:
parent
76119a4567
commit
d4a4e4ec2d
@ -711,7 +711,13 @@ void ColumnTuple::takeDynamicStructureFromSourceColumns(const Columns & source_c
|
||||
ColumnPtr ColumnTuple::compress() const
|
||||
{
|
||||
if (columns.empty())
|
||||
return Ptr();
|
||||
{
|
||||
return ColumnCompressed::create(size(), 0,
|
||||
[n = column_length]
|
||||
{
|
||||
return ColumnTuple::create(n);
|
||||
});
|
||||
}
|
||||
|
||||
size_t byte_size = 0;
|
||||
Columns compressed;
|
||||
|
@ -0,0 +1,2 @@
|
||||
() 0
|
||||
() 0
|
@ -0,0 +1,2 @@
|
||||
SELECT tuple(), 0 FROM numbers(1) SETTINGS use_query_cache = true;
|
||||
SELECT tuple(), 0 FROM numbers(1) SETTINGS use_query_cache = true;
|
Loading…
Reference in New Issue
Block a user