mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-17 20:02:05 +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);
|
|
}
|
|
|
|
}
|