Skip to content

Commit

Permalink
fix compile
Browse files Browse the repository at this point in the history
  • Loading branch information
solotzg committed Aug 25, 2022
1 parent 101ba20 commit ecc60e0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions dbms/src/Functions/FunctionsComparison.h
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,8 @@ struct NameStrcmp
template <
template <typename, typename>
class Op,
typename Name>
typename Name,
typename DefaultReturnColumnType = ColumnUInt8>
class FunctionComparison : public IFunction
{
public:
Expand Down Expand Up @@ -803,7 +804,7 @@ class FunctionComparison : public IFunction

friend class FunctionStrcmp;

template <typename ReturnColumnType = ColumnUInt8>
template <typename ReturnColumnType = DefaultReturnColumnType>
bool executeString(Block & block, size_t result, const IColumn * c0, const IColumn * c1) const
{
const auto * c0_string = checkAndGetColumn<ColumnString>(c0);
Expand Down Expand Up @@ -1299,7 +1300,7 @@ class FunctionComparison : public IFunction
}
};

class FunctionStrcmp : public FunctionComparison<CmpOp, NameStrcmp>
class FunctionStrcmp : public FunctionComparison<CmpOp, NameStrcmp, ColumnInt8>
{
public:
static FunctionPtr create(const Context &) { return std::make_shared<FunctionStrcmp>(); };
Expand Down

0 comments on commit ecc60e0

Please sign in to comment.