Fix build.

This commit is contained in:
Nikolai Kochetov 2019-08-19 21:34:12 +03:00
parent 56a9c3920f
commit d359ff3d4a

View File

@ -70,7 +70,12 @@ protected:
FunctionBasePtr buildImpl(const ColumnsWithTypeAndName & arguments, const DataTypePtr & return_type) const override
{
return std::make_shared<BaseFunctionToTypeName>(arguments, return_type);
DataTypes types;
types.reserve(arguments.size());
for (auto & elem : arguments)
types.emplace_back(elem.type);
return std::make_shared<BaseFunctionToTypeName>(types, return_type);
}
};