#pragma once #include #include namespace DB { /** Позволяет создать агрегатную функцию по её имени. */ class AggregateFunctionFactory { public: AggregateFunctionFactory(); AggregateFunctionPtr get(const String & name, const DataTypes & argument_types, int recursion_level = 0) const; AggregateFunctionPtr tryGet(const String & name, const DataTypes & argument_types) const; bool isAggregateFunctionName(const String & name, int recursion_level = 0) const; }; }