| 1 | #include <Interpreters/ExtractFunctionDataVisitor.h> | 
|---|---|
| 2 | #include <AggregateFunctions/AggregateFunctionFactory.h> | 
| 3 | |
| 4 | |
| 5 | namespace DB | 
| 6 | { | 
| 7 | |
| 8 | void ExtractFunctionData::visit(ASTFunction & function, ASTPtr &) | 
| 9 | { | 
| 10 | if (AggregateFunctionFactory::instance().isAggregateFunctionName(function.name)) | 
| 11 | aggregate_functions.emplace_back(&function); | 
| 12 | else | 
| 13 | functions.emplace_back(&function); | 
| 14 | } | 
| 15 | |
| 16 | } | 
| 17 | 
