From e6cd0de6ae2b820bc75d0d06ede397f37802e20a Mon Sep 17 00:00:00 2001 From: Valerio Date: Wed, 18 Sep 2024 17:49:17 +0200 Subject: [PATCH] trying this one.. --- src/Functions/array/arrayAggregation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Functions/array/arrayAggregation.cpp b/src/Functions/array/arrayAggregation.cpp index 9edfc23fd5d..561e300ca60 100644 --- a/src/Functions/array/arrayAggregation.cpp +++ b/src/Functions/array/arrayAggregation.cpp @@ -360,7 +360,7 @@ struct ArrayAggregateImpl static ColumnPtr execute(const ColumnArray & array, ColumnPtr mapped) { - if (!mapped->isNumeric() && (aggregate_operation == AggregateOperation::max || aggregate_operation == AggregateOperation::min)) + if (!mapped->isNumeric() && !isNumber(array.getDataPtr()->getDataType()) && (aggregate_operation == AggregateOperation::max || aggregate_operation == AggregateOperation::min)) { MutableColumnPtr res; const auto & column = array.getDataPtr();