diff --git a/be/src/vec/aggregate_functions/aggregate_function_collect.h b/be/src/vec/aggregate_functions/aggregate_function_collect.h index c78c01984dbd15e..1b4eadf259de8b7 100644 --- a/be/src/vec/aggregate_functions/aggregate_function_collect.h +++ b/be/src/vec/aggregate_functions/aggregate_function_collect.h @@ -265,7 +265,7 @@ struct AggregateFunctionCollectListData { data->insert_range_from(*rhs.data, 0, std::min(assert_cast( - static_cast(max_size - size())), + static_cast(max_size - size())), rhs.size())); } else { data->insert_range_from(*rhs.data, 0, rhs.size());