Fix StorageMerge.

This commit is contained in:
Nikolai Kochetov 2020-02-17 12:26:15 +03:00
parent 1685c4d689
commit 9b2d03f58c

View File

@ -306,6 +306,7 @@ Pipes StorageMerge::createSources(const SelectQueryInfo & query_info, const Quer
* And this is not allowed, since all code is based on the assumption that in the block stream all types are the same. * And this is not allowed, since all code is based on the assumption that in the block stream all types are the same.
*/ */
pipe.addSimpleTransform(std::make_shared<MaterializingTransform>(pipe.getHeader())); pipe.addSimpleTransform(std::make_shared<MaterializingTransform>(pipe.getHeader()));
pipes.emplace_back(std::move(pipe));
} }
if (!pipes.empty()) if (!pipes.empty())