use sumMapWithOverflow in SummingSortedBlockInputStream

This commit is contained in:
Léo Ercolanelli 2019-01-25 20:36:18 +01:00
parent 038a48bb38
commit e1d6017120
2 changed files with 3 additions and 3 deletions

View File

@ -181,7 +181,7 @@ SummingSortedBlockInputStream::SummingSortedBlockInputStream(
if (map_desc.key_col_nums.size() == 1)
{
// Create summation for all value columns in the map
desc.init("sumMap", argument_types);
desc.init("sumMapWithOverflow", argument_types);
columns_to_aggregate.emplace_back(std::move(desc));
}
else
@ -220,7 +220,7 @@ void SummingSortedBlockInputStream::insertCurrentRowIfNeeded(MutableColumns & me
}
else
{
/// It is sumMap aggregate function.
/// It is sumMapWithOverflow aggregate function.
/// Assume that the row isn't empty in this case (just because it is compatible with previous version)
current_row_is_zero = false;
}

View File

@ -70,7 +70,7 @@ private:
/// Stores aggregation function, state, and columns to be used as function arguments
struct AggregateDescription
{
/// An aggregate function 'sumWithOverflow' or 'sumMap' for summing.
/// An aggregate function 'sumWithOverflow' or 'sumMapWithOverflow' for summing.
AggregateFunctionPtr function;
IAggregateFunction::AddFunc add_function = nullptr;
std::vector<size_t> column_numbers;