Skip to content

Commit

Permalink
fix inconsistent result before deleting some rows (#6133) (#6145)
Browse files Browse the repository at this point in the history
close #6127
  • Loading branch information
ti-chi-bot authored Oct 19, 2022
1 parent c2c3617 commit 97088c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dbms/src/Functions/FunctionsLogical.h
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ struct NotImpl
{
using ResultType = UInt8;

static inline UInt8 apply(A a)
static inline bool apply(A a)
{
return !a;
}
Expand Down Expand Up @@ -180,7 +180,7 @@ struct AssociativeOperationImpl
: vec(in[in.size() - N]->getData()), continuation(in) {}

/// Returns a combination of values in the i-th row of all columns stored in the constructor.
inline UInt8 apply(size_t i) const
inline bool apply(size_t i) const
{
if (Op::isSaturable())
{
Expand Down Expand Up @@ -223,7 +223,7 @@ struct AssociativeOperationImpl<Op, 1>
AssociativeOperationImpl(UInt8ColumnPtrs & in)
: vec(in[in.size() - 1]->getData()) {}

inline UInt8 apply(size_t i) const
inline bool apply(size_t i) const
{
return vec[i];
}
Expand Down

0 comments on commit 97088c2

Please sign in to comment.