Build fixed

This commit is contained in:
akazz 2019-07-23 01:39:42 +03:00
parent 9c769bb942
commit 58d83e44ed

View File

@ -95,9 +95,10 @@ template <class Op, typename Func>
static bool extractConstColumns(ColumnRawPtrs & in, UInt8 & res, Func && func)
{
bool has_res = false;
for (int i = static_cast<int>(in.size()) - 1; i >= 0; --i)
{
if (!in[i]->isColumnConst())
if (!isColumnConst(*in[i]))
continue;
UInt8 x = func((*in[i])[0]);
@ -113,6 +114,7 @@ static bool extractConstColumns(ColumnRawPtrs & in, UInt8 & res, Func && func)
in.erase(in.begin() + i);
}
return has_res;
}
@ -538,11 +540,6 @@ struct UnaryOperationImpl
a.cbegin(), a.cend(), c.begin(),
[](const auto x) { return Op::apply(x); });
}
static void constant(A a, ResultType & c)
{
c = Op::apply(a);
}
};
template <template <typename> class Impl, typename Name>