Add Settings to AggregateFunctionSumCount/AggregateFunctionDeltaSumTimestamp

This commit is contained in:
vdimir 2021-05-11 12:20:31 +03:00
parent 905e54a0af
commit 7ccf47cdfd
No known key found for this signature in database
GPG Key ID: F57B3E10A21DBB31
2 changed files with 7 additions and 2 deletions

View File

@ -20,7 +20,8 @@ namespace
AggregateFunctionPtr createAggregateFunctionDeltaSumTimestamp(
const String & name,
const DataTypes & arguments,
const Array & params)
const Array & params,
const Settings *)
{
assertNoParameters(name, params);

View File

@ -6,6 +6,9 @@
namespace DB
{
struct Settings;
namespace ErrorCodes
{
extern const int ILLEGAL_TYPE_OF_ARGUMENT;
@ -19,7 +22,8 @@ bool allowType(const DataTypePtr& type) noexcept
return t.isInt() || t.isUInt() || t.isFloat() || t.isDecimal();
}
AggregateFunctionPtr createAggregateFunctionSumCount(const std::string & name, const DataTypes & argument_types, const Array & parameters)
AggregateFunctionPtr
createAggregateFunctionSumCount(const std::string & name, const DataTypes & argument_types, const Array & parameters, const Settings *)
{
assertNoParameters(name, parameters);
assertUnary(name, argument_types);