Skip to content

Commit

Permalink
fix error result of agg function
Browse files Browse the repository at this point in the history
  • Loading branch information
HappenLee committed Aug 9, 2021
1 parent 3de4df8 commit 36279c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions be/src/exprs/aggregate_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@ void AggregateFunctions::init_zero_not_null(FunctionContext*, DecimalV2Val* dst)

template <typename T>
void AggregateFunctions::init_zero(FunctionContext*, T* dst) {
dst->is_null = true;
dst->is_null = false;
dst->val = 0;
}

template <>
void AggregateFunctions::init_zero(FunctionContext*, DecimalV2Val* dst) {
dst->is_null = true;
dst->is_null = false;
dst->set_to_zero();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,6 @@ protected void writeFields(DataOutput output) throws IOException {
}
writeOptionString(output, libUrl);
writeOptionString(output, checksum);
output.writeBoolean(vectorized);
}

@Override
Expand Down

0 comments on commit 36279c0

Please sign in to comment.