trying this one..

This commit is contained in:
Valerio 2024-09-18 17:49:17 +02:00
parent c3274e24c0
commit e6cd0de6ae
No known key found for this signature in database
GPG Key ID: 199FE2465C3800F4

View File

@ -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();