Materialize constant keys in header.

This commit is contained in:
Nikolai Kochetov 2019-08-12 21:00:41 +03:00
parent 0635188104
commit b5c9be75c4

View File

@ -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)
{