AggregateFunctionSumMap better comment message

This commit is contained in:
Maksim Kita 2021-03-01 19:15:59 +03:00
parent 56af09891b
commit 3764a2a2be

View File

@ -118,6 +118,8 @@ public:
WhichDataType value_type_to_check(value_type);
/// Do not promote decimal because of implementation issues of this function design
/// Currently we cannot get result column type in case of decimal we cannot get decimal scale
/// in method void insertResultInto(AggregateDataPtr __restrict place, IColumn & to, Arena *) const override
/// If we decide to make this function more efficient we should promote decimal type during summ
if (value_type_to_check.isDecimal())
result_type = value_type_without_nullable;
@ -337,7 +339,11 @@ public:
if (elem.second[col].isNull())
to_values_col.insertDefault();
else
{
auto element_field = elem.second[col];
to_values_col.insert(elem.second[col]);
}
}
}
}