Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions be/src/vec/aggregate_functions/aggregate_function_bitmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ struct AggregateFunctionBitmapUnionOp {
template <typename T>
static void add(BitmapValue& res, const T& data, bool& is_first) {
res.add(data);
is_first = false;
}

static void add(BitmapValue& res, const BitmapValue& data, bool& is_first) {
Expand All @@ -67,6 +68,9 @@ struct AggregateFunctionBitmapUnionOp {

static void add_batch(BitmapValue& res, std::vector<const BitmapValue*>& data, bool& is_first) {
res.fastunion(data);
// after fastunion, res myabe have many datas, so is_first should be false
// then call add function will not reset res
is_first = false;
}

static void merge(BitmapValue& res, const BitmapValue& data, bool& is_first) {
Expand Down
Loading