mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 08:40:50 +00:00
Simplification of aggregate functions: compatibility details [#CLICKHOUSE-2].
This commit is contained in:
parent
ef6d3be53a
commit
bf9c301784
@ -37,8 +37,7 @@ AggregateFunctionPtr createAggregateFunctionSumMap(const std::string & name, con
|
||||
values_types.push_back(array_type->getNestedType());
|
||||
}
|
||||
|
||||
return AggregateFunctionPtr(createWithNumericType<AggregateFunctionSumMap>(*array_type->getNestedType(),
|
||||
std::move(keys_type), std::move(values_types)));
|
||||
return AggregateFunctionPtr(createWithNumericType<AggregateFunctionSumMap>(*keys_type, keys_type, std::move(values_types)));
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -488,7 +488,7 @@ void SummingSortedBlockInputStream::addRow(SortCursor & cursor)
|
||||
for (size_t i = 0; i < desc.column_numbers.size(); ++i)
|
||||
columns[i] = cursor->all_columns[desc.column_numbers[i]];
|
||||
|
||||
desc.add_function(desc.function.get(),desc.state.data(), columns.data(), cursor->pos, nullptr);
|
||||
desc.add_function(desc.function.get(), desc.state.data(), columns.data(), cursor->pos, nullptr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user