diff --git a/src/Functions/array/arrayAggregation.cpp b/src/Functions/array/arrayAggregation.cpp index 45f4e7ab529..8a1b3abe565 100644 --- a/src/Functions/array/arrayAggregation.cpp +++ b/src/Functions/array/arrayAggregation.cpp @@ -173,7 +173,7 @@ struct ArrayAggregateImpl { size_t array_size = offsets[i] - pos; /// Just multiply the value by array size. - res[i] = x * Result(array_size); + res[i] = x * ResultType(array_size); } else if constexpr (aggregate_operation == AggregateOperation::min || aggregate_operation == AggregateOperation::max)