mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Merge pull request #66168 from ClickHouse/cachemeifyoucan
Fix crash when adding empty tuple to query cache
This commit is contained in:
commit
1d37952a95
@ -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