Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
924060929 committed Jan 3, 2025
1 parent b72f364 commit e853f67
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions be/src/vec/aggregate_functions/aggregate_function_collect.h
Original file line number Diff line number Diff line change
Expand Up @@ -256,10 +256,10 @@ struct AggregateFunctionCollectListData<StringRef, HasLimit> {
}
max_size = rhs.max_size;

data->insert_range_from(*rhs.data, 0,
std::min(assert_cast<size_t>(
static_cast<size_t>(max_size - size())),
rhs.size()));
data->insert_range_from(
*rhs.data, 0,
std::min(assert_cast<size_t>(static_cast<size_t>(max_size - size())),
rhs.size()));
} else {
data->insert_range_from(*rhs.data, 0, rhs.size());
}
Expand Down

0 comments on commit e853f67

Please sign in to comment.