mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 05:32:52 +00:00
17 lines
391 B
C++
17 lines
391 B
C++
#include <Interpreters/ExtractFunctionDataVisitor.h>
|
|
#include <AggregateFunctions/AggregateFunctionFactory.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
void ExtractFunctionData::visit(ASTFunction & function, ASTPtr &)
|
|
{
|
|
if (AggregateFunctionFactory::instance().isAggregateFunctionName(function.name))
|
|
aggregate_functions.emplace_back(&function);
|
|
else
|
|
functions.emplace_back(&function);
|
|
}
|
|
|
|
}
|