Merge pull request #14583 from nikitamikhaylov/datasets-gen-20

Fix for clang-8 build in datasets generator.
This commit is contained in:
Nikita Mikhaylov 2020-09-08 20:29:14 +04:00 committed by GitHub
commit 336df167ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -651,10 +651,9 @@ FuncRet inFunc(DB::ASTPtr ch, std::map<std::string, Column> & columns)
{
ColumnType type = type_cast(literal->value.getType());
/// C++20
auto routine = [&] <typename T>(const T & arr_values)
auto routine = [&](const auto & arr_values)
{
for (auto val : arr_values)
for (auto & val : arr_values)
{
type = type_cast(val.getType());
if (type == type::s || type == type::d || type == type::dt)