mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-30 05:30:51 +00:00
Build fixed
This commit is contained in:
parent
9c769bb942
commit
58d83e44ed
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user