mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
Materialize constant keys in header.
This commit is contained in:
parent
0635188104
commit
b5c9be75c4
@ -452,7 +452,7 @@ Block InterpreterSelectQuery::getSampleBlockImpl()
|
||||
Block res;
|
||||
|
||||
for (auto & key : key_names)
|
||||
res.insert(header.getByName(key).cloneEmpty());
|
||||
res.insert({nullptr, header.getByName(key).type, key});
|
||||
|
||||
for (auto & aggregate : aggregates)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user